kAudioSessionProperty_CurrentHardwareInputNumberChannels in MediaPlayback
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