diff --git a/LeCountdown/Sound/SoundPlayer.swift b/LeCountdown/Sound/SoundPlayer.swift index d7b6b2a..5dbcd6c 100644 --- a/LeCountdown/Sound/SoundPlayer.swift +++ b/LeCountdown/Sound/SoundPlayer.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 { diff --git a/LeCountdown/Views/SoundImageFormView.swift b/LeCountdown/Views/SoundImageFormView.swift index 0c964e3..2060bee 100644 --- a/LeCountdown/Views/SoundImageFormView.swift +++ b/LeCountdown/Views/SoundImageFormView.swift @@ -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")) {