Reputation: 770
if i use play sound in device from any method than [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
will effect on the sound that i was playing or it will work only if play sound using AVAudioPlayer
Upvotes: 0
Views: 127
Reputation: 260
No! AVAudioSession
is a singleton class which can be used to set the audio context for your app. it is not specified for AVAudioPlayer
. #reference https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVAudioSession_ClassReference/
Upvotes: 1