@ -48,8 +48,8 @@ class SoundPlayer {
_player = try AVAudioPlayer(contentsOf: url)
_player?.prepareToPlay()
let loopCount = repeats ? Int.max : 0
// let loopCount = repeats ? Int.max : 0
_player?.numberOfLoops = loopCount
_player?.numberOfLoops = 0 //loopCount
_player?.volume = 1.0
// do {
@ -46,9 +46,9 @@ struct SoundImageFormView : View {
}
if self.repeatsBinding != nil {
// if self.repeatsBinding != nil {
Toggle("Sound repeats", isOn: repeatsBinding!)
// Toggle("Sound repeats", isOn: repeatsBinding!)
// }
Section(header: Text("Background")) {