RemoteIO and iPad class compliant interface issues
RemoteIO and iPad class compliant interface issues
- Subject: RemoteIO and iPad class compliant interface issues
- From: Christopher Penrose <email@hidden>
- Date: Sun, 6 Jun 2010 03:10:57 -0700
Hey folks,
I am trying to get my app to work with a class 1 compliant device on the iPad. The device sends audio out nicely with Apple's iPod application. My first issue:
The device I am testing with is an audio out only device (a Turtle Beach Micro II). Adding the device while my app was running did nothing when my audio session category was set to kAudioSessionCategory_PlayAndRecord, the preferred category for the app. I checked (see my postscript below) and I simply did not receive route changes with my listener at all. Is there any way to override this behavior and have a route change get sent or is my app locked out from using a device that conflicts with its audio session category setting? If the latter is true, I can use settings to force my app to use kAudioSessionCategory_LiveAudio on launch. But it would be nice if I could support playback only devices cleanly regardless of the current session category of my app.
The other more confounding issue is that when I do receive and handle the route change (in the situation where I have disabled recording at launch and use a session category of kAudioSessionCategory_LiveAudio) after the audio interface is added, my audio callback ceases to be called (despite my previously adequate route change handling as my app handles headphone to external speaker transitions fine). I dispose of the current aurio and initialize and start a new one within the route change listener. I also get the same behavior when I launch the app with the audio device already attached. I am not sure what I am missing. The app doesn't hang or crash and playback immediately resumes through the iPad speaker or headphone outputs as soon as the external interface is disconnected (more evidence that my route change handling is at least partially correct).
Any input would be appreciated!
Christopher
p.s. debugging aurio is really fun with this dongle; I can't printf or nslog to a console and I can't use a debugger so I have been using exit() as a debugging tool rofl _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden