This commit is contained in:
Trey t
2023-07-06 09:41:59 -05:00
parent e3a3cae346
commit ea6a8f74b9

View File

@@ -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))