Remove looping sounds

release
Laurent 3 years ago
parent 34992906ec
commit 7bd846fb8c
  1. 4
      LeCountdown/Sound/SoundPlayer.swift
  2. 6
      LeCountdown/Views/SoundImageFormView.swift

@ -48,8 +48,8 @@ class SoundPlayer {
_player = try AVAudioPlayer(contentsOf: url)
_player?.prepareToPlay()
let loopCount = repeats ? Int.max : 0
_player?.numberOfLoops = loopCount
// let loopCount = repeats ? Int.max : 0
_player?.numberOfLoops = 0 //loopCount
_player?.volume = 1.0
// do {

@ -46,9 +46,9 @@ struct SoundImageFormView : View {
}
}
if self.repeatsBinding != nil {
Toggle("Sound repeats", isOn: repeatsBinding!)
}
// if self.repeatsBinding != nil {
// Toggle("Sound repeats", isOn: repeatsBinding!)
// }
}
Section(header: Text("Background")) {

Loading…
Cancel
Save