From ea6a8f74b9d9b7e72a2dd3b01639ab14b4efdafa Mon Sep 17 00:00:00 2001 From: Trey t Date: Thu, 6 Jul 2023 09:41:59 -0500 Subject: [PATCH] WIP --- Werkout_ios/BridgeModule.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Werkout_ios/BridgeModule.swift b/Werkout_ios/BridgeModule.swift index d7b80c6..62556d1 100644 --- a/Werkout_ios/BridgeModule.swift +++ b/Werkout_ios/BridgeModule.swift @@ -139,7 +139,7 @@ class BridgeModule: NSObject, ObservableObject { if currentExerciseTimeLeft == 0 { playFinished() } else { - if currentExerciseTimeLeft < 4 { + if currentExerciseTimeLeft <= 4 { playBeep() } } @@ -205,7 +205,7 @@ class BridgeModule: NSObject, ObservableObject { do { try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, - options: [.mixWithOthers, .allowAirPlay]) + options: [.mixWithOthers]) try AVAudioSession.sharedInstance().setActive(true) audioPlayer = try AVAudioPlayer(contentsOf: URL(fileURLWithPath: path)) @@ -223,7 +223,7 @@ class BridgeModule: NSObject, ObservableObject { do { try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, - options: [.mixWithOthers, .allowAirPlay]) + options: [.mixWithOthers]) try AVAudioSession.sharedInstance().setActive(true) audioPlayer = try AVAudioPlayer(contentsOf: URL(fileURLWithPath: path))