AVAudioSession -- do I need it?
AVAudioSession -- do I need it?
- Subject: AVAudioSession -- do I need it?
- From: Bob Sabiston <email@hidden>
- Date: Sat, 19 Jan 2013 13:31:07 -0600
Hello,
I am still trying to track down why my mixer input volumes don't change. Someone suggested I look at the "iPhoneMultiChannelMixerTest" instead of "MixerHost", which I had been using as a reference.
I notice that both projects use the AVFoundation framework. But "MixerHost" (and my own code) uses AVAudioSession, whereas "iPhoneMultiChannelMixerTest" does not. The latter uses code like this to set the category:
UInt32 audioCategory = kAudioSessionCategory_AmbientSound; XThrowIfError(AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(audioCategory), &audioCategory), "couldn't set audio category");
whereas the former uses something like this:
AVAudioSession *mySession = [AVAudioSession sharedInstance]; NSError *audioSessionError = nil; [mySession setCategory: AVAudioSessionCategoryAmbient error: &audioSessionError];
I am just wondering what is the difference here? Should I not be using AVAudioSession? Why would someone choose one set of code over the other? Is one older?
Thanks Bob
|
_______________________________________________
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