Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
- Subject: Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
- From: Paul Slocum <email@hidden>
- Date: Thu, 04 Oct 2012 16:51:38 -0400
I have a recorder app that needs to switch between kAudioSessionCategory_AmbientSound and kAudioSessionCategory_PlayAndRecord. Before upgrading to iOS 6 this worked great, but since the upgrade I'm getting a couple of errors on the console when I try to enable recording:
code:
UInt32 audioCategory = kAudioSessionCategory_PlayAndRecord;
OSStatus audioCategoryStatus = AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(audioCategory), &audioCategory);
console errors:
2012-10-04 11:18:56.388 TestApp[1062:526b] 11:18:56.389 shm_open failed: "AppleAURemoteIO.i.241f5" (23) flags=0x2 errno=2
2012-10-04 11:18:56.390 TestApp[1062:526b] 11:18:56.390 AURemoteIO::ChangeHardwareFormats: error 3
The call to AudioSessionSetProperty does not return any error. Any ideas about what I need to do to fix this?
thanks,
-paul
_______________________________________________
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