• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
      • From: Paul Slocum <email@hidden>
  • Prev by Date: Re: converting samples from mp3 stream to pcm in memory (iOS)
  • Next by Date: Re: Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
  • Previous by thread: Re: converting samples from mp3 stream to pcm in memory (iOS)
  • Next by thread: Re: Error switching kAudioSessionProperty_AudioCategory after iOS 6 update
  • Index(es):
    • Date
    • Thread