I have a device similar to the Square reader that plugs in to the audio jack of an iPad and feeds in very simple data. I'm using Novocaine to read the raw data, but I'm having a problem playing audio through the speaker simultaneously.
Is it possible to record input from the headphone jack while playing sound through the speaker? If I set kAudioSessionProperty_OverrideAudioRoute
to kAudioSessionOverrideAudioRoute_Speaker
, the route for the input is changed as well. From what I can tell, it's not possible to set the input and output routes independently.
Is it possible to drop down a level and use Remote IO units to accomplish this? Is there any higher-level API I can use? Does anyone have an example of this?