Need non deprecated alternate to (btw I think this is still in the current apple docs at link):
OSStatus propertySetError = 0; UInt32 allowMixing = true; propertySetError = AudioSessionSetProperty ( kAudioSessionProperty_OverrideCategoryMixWithOthers, // 1 sizeof (allowMixing), // 2 &allowMixing // 3 );
Thanks;
Use AVAudioSession
:
AVAudioSession *session = [AVAudioSession sharedInstance]; NSError *setCategoryError = nil; if (![session setCategory:AVAudioSessionCategoryPlayback withOptions:AVAudioSessionCategoryOptionMixWithOthers error:&setCategoryError]) { // handle error }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With