diff --git a/ios/AudioController.swift b/ios/AudioController.swift index fa46e33..0c48558 100644 --- a/ios/AudioController.swift +++ b/ios/AudioController.swift @@ -27,7 +27,8 @@ public class AudioController { private func activateAudioSession() throws { let audioSession = AVAudioSession.sharedInstance() - try audioSession.setCategory(.playback, mode: .default, options: [.mixWithOthers, .duckOthers]) + try audioSession.setCategory(.playback, mode: .default) + //try audioSession.overrideOutputAudioPort(.speaker) try audioSession.setActive(true) } @@ -72,6 +73,7 @@ public class AudioController { private func setupAudioComponentsAndStart() throws { do { + try self.deactivateAudioSession() setupAudioEngine() setupAudioPlayerNode() connectNodes() diff --git a/package.json b/package.json index f49df63..2e5297b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mykin-ai/expo-audio-stream", - "version": "0.1.32", + "version": "0.1.33", "description": "Expo Play Audio Stream module", "main": "build/index.js", "types": "build/index.d.ts",