From 9d6f138d4f66298e24673293a5ae802aed1d81cb Mon Sep 17 00:00:00 2001 From: Alexander Demchuk Date: Tue, 15 Oct 2024 15:23:35 +0200 Subject: [PATCH] fix: added deactivate session --- ios/AudioController.swift | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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",