Skip to content

Commit

Permalink
fix: added deactivate session
Browse files Browse the repository at this point in the history
  • Loading branch information
demchuk-alex committed Oct 15, 2024
1 parent 05fd2aa commit 9d6f138
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ios/AudioController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -72,6 +73,7 @@ public class AudioController {

private func setupAudioComponentsAndStart() throws {
do {
try self.deactivateAudioSession()
setupAudioEngine()
setupAudioPlayerNode()
connectNodes()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9d6f138

Please sign in to comment.