Re: Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
Re: Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
- Subject: Re: Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
- From: Paul Slocum <email@hidden>
- Date: Thu, 04 Oct 2012 17:34:08 -0400
-or- is there some way to get the iOS keyboard to make the typewriter sound when in kAudioSessionCategory_PlayAndRecord mode? I'm switching modes because I want the keyboard sounds to work when my app isn't recording.
-paul
On Thu, Oct 4, 2012 at 4:51 PM, Paul Slocum
<email@hidden> wrote:
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