File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
ios/ReactNativeAudioToolkit/ReactNativeAudioToolkit Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ - (NSURL *)findUrlForPath:(NSString *)path {
139
139
}
140
140
NSNumber *mixWithOthers = [options objectForKey: @" mixWithOthers" ];
141
141
NSError *error = nil ;
142
- [[AVAudioSession sharedInstance ] setCategory: avAudioSessionCategory withOptions: mixWithOthers ? AVAudioSessionCategoryOptionMixWithOthers : 0 error: &error];
142
+ [[AVAudioSession sharedInstance ] setCategory: avAudioSessionCategory withOptions: mixWithOthers.intValue > 0 ? AVAudioSessionCategoryOptionMixWithOthers : 0 error: &error];
143
143
if (error) {
144
144
NSDictionary * dict = [Helpers errObjWithCode: @" preparefail"
145
145
withMessage: @" Failed to set audio session category." ];
You can’t perform that action at this time.
0 commit comments