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

Re: kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback


  • Subject: Re: kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback
  • From: "support (One Red Dog Media)" <email@hidden>
  • Date: Tue, 07 Aug 2012 23:50:32 +0000
  • Thread-topic: kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback

Hi Michael

I had a similar problem and ended up just testing for kAudioSessionProperty_AudioInputAvailable but of course that doesn't tell you the number of input channels.....

cheers
peter

On 08/08/2012, at 5:46 AM, Michael Tyson <email@hidden> wrote:

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


 _______________________________________________
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: Michael Tyson <email@hidden>
References: 
 >kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback (From: Michael Tyson <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: kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback
  • Next by thread: Re: kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback
  • Index(es):
    • Date
    • Thread