'what's up AudioOutputUnitStart?
'what's up AudioOutputUnitStart?
- Subject: 'what's up AudioOutputUnitStart?
- From: Dean Reyburn <email@hidden>
- Date: Tue, 29 Jan 2013 13:56:28 -0500
I'm getting a reproducible an error with one of my sound recording apps when it calls AudioOutputUnitStart(). The return code is 2003329396, (fourCharCode 'what').
I found a comment on the web that describes this:
The 'what' error code is kAudioSessionUnspecifiedError, about which the comments in AudioServices.h say "This would indicate an Apple-internal bug or that the audio system is currently in a bad state.".
kAudioCodecUnspecifiedError = 2003329396;
This is reproducible so far only on an iPhone 4 with iOS 6.0.1 after the app is interrupted by a phone call. The app handles audio interruptions by the book, and avoid trying to start recording until the app is in the foreground. The app works fine in iOS 5 on all hardware, and with iOS 6.0.1 on an iPhone 5.
I'm able to reproduce what looks like the same error in Apple's sample project AurioTouch which outputs:
AUIOClient_StartIO failed (2003329396)
Error: couldn't start unit ('what')
The only thing I can think of (and suggested on stackoverflow) to solve the problem if this error occurs is tearing down the audio recording completely and restarting again from scratch.
Anyone have a better solution?
Thanks in advance,
-Dean
Reyburn CyberTuner, Inc.
http://www.reyburn.com
_______________________________________________
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