Force iPhone to read in data through headphone jack

亡梦爱人 提交于 2019-12-11 12:22:55

问题


I'm working on a project that ask the iPhone to receive data through headphone jack. I know it is doable, when I plug in the iPhone headphone it automatically change the input from the mac built in microphone to external microphone (I'm running the code on simulator) to record data. However, when I cut the headphone up and attach it to my signal generator, it seems that my mac cannot detect the external microphone anymore. Does anyone know how to manually set the headphone jack as the iPhone's input? I've searched on this topic, like link iPhone headphone jack - read in data? and hiJack project. But it seems that, once they plug in the headphone or other connecting line, the phone would automatically regard the headphone jack as the input... So I'm stuck on this problem, can anyone help? Thanks very much!

来源:https://stackoverflow.com/questions/21343496/force-iphone-to-read-in-data-through-headphone-jack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!