• 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
kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback


  • Subject: kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback
  • From: Michael Tyson <email@hidden>
  • Date: Tue, 07 Aug 2012 20:46:56 +0100

Hey folks,

On iOS, does anyone know a way to obtain the number of hardware input channels while in the MediaPlayback audio session category?

I discovered today - much to my embarrassment - that recording is not only possible in the MediaPlayback audio category, but is in fact much more multitasking-friendly. I always used PlayAndRecord whenever doing any recording stuff, as per Apple's guidelines, and was simply used to the fact that only one app could use this category at a time. After discovering another app happily pulling away at the mic audio at the same time as an app using PlayAndRecord, I realised that MediaPlayback was a viable option for a recording app. This is simply fantastic, as it enables my music app to coexist even better with other music apps.

Unfortunately, however, querying the kAudioSessionProperty_CurrentHardwareInputNumberChannels property spews a "!cat" error (incompatible category).  I just gotta have that property value.

I'm aware that I could switch to PlayAndRecord/Record for the duration of the session property query, but I don't like that option due to the fact that it'll clobber any other app using a Record category.

Anyone have any ideas?

Many thanks,
Michael
 _______________________________________________
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: kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback
      • From: "support (One Red Dog Media)" <email@hidden>
  • Prev by Date: Re: handing audio dropouts with synchronized input and output
  • Next by Date: Re: handing audio dropouts with synchronized input and output
  • Previous by thread: AudioChannelLayout in HAL plugin, AudioChannelLayout in CAF file, wrong channel assignments!
  • Next by thread: Re: kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback
  • Index(es):
    • Date
    • Thread