WIP
This commit is contained in:
@@ -139,7 +139,7 @@ class BridgeModule: NSObject, ObservableObject {
|
|||||||
if currentExerciseTimeLeft == 0 {
|
if currentExerciseTimeLeft == 0 {
|
||||||
playFinished()
|
playFinished()
|
||||||
} else {
|
} else {
|
||||||
if currentExerciseTimeLeft < 4 {
|
if currentExerciseTimeLeft <= 4 {
|
||||||
playBeep()
|
playBeep()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -205,7 +205,7 @@ class BridgeModule: NSObject, ObservableObject {
|
|||||||
do {
|
do {
|
||||||
try AVAudioSession.sharedInstance().setCategory(.playback,
|
try AVAudioSession.sharedInstance().setCategory(.playback,
|
||||||
mode: .default,
|
mode: .default,
|
||||||
options: [.mixWithOthers, .allowAirPlay])
|
options: [.mixWithOthers])
|
||||||
try AVAudioSession.sharedInstance().setActive(true)
|
try AVAudioSession.sharedInstance().setActive(true)
|
||||||
|
|
||||||
audioPlayer = try AVAudioPlayer(contentsOf: URL(fileURLWithPath: path))
|
audioPlayer = try AVAudioPlayer(contentsOf: URL(fileURLWithPath: path))
|
||||||
@@ -223,7 +223,7 @@ class BridgeModule: NSObject, ObservableObject {
|
|||||||
do {
|
do {
|
||||||
try AVAudioSession.sharedInstance().setCategory(.playback,
|
try AVAudioSession.sharedInstance().setCategory(.playback,
|
||||||
mode: .default,
|
mode: .default,
|
||||||
options: [.mixWithOthers, .allowAirPlay])
|
options: [.mixWithOthers])
|
||||||
try AVAudioSession.sharedInstance().setActive(true)
|
try AVAudioSession.sharedInstance().setActive(true)
|
||||||
|
|
||||||
audioPlayer = try AVAudioPlayer(contentsOf: URL(fileURLWithPath: path))
|
audioPlayer = try AVAudioPlayer(contentsOf: URL(fileURLWithPath: path))
|
||||||
|
|||||||
Reference in New Issue
Block a user