Compare commits

..

No commits in common. "7e6cc8cd1b6596cb53642bc58bce0252ee26514e" and "2eb3b0a0894aebeca23aa6eda9f37963e82988aa" have entirely different histories.

View File

@ -99,12 +99,11 @@ func PlaySound(file string, index int, loop bool) int {
amountOfLoops := 1 amountOfLoops := 1
if loop { if loop {
amountOfLoops = -1 amountOfLoops = -1
fmt.Println("Looping sound: " + file)
} }
shot := buffer.Streamer(0, buffer.Len()) shot := buffer.Streamer(amountOfLoops, buffer.Len())
done := make(chan bool) done := make(chan bool)
ctrl := &beep.Ctrl{Streamer: beep.Loop(amountOfLoops, shot), Paused: false} ctrl := &beep.Ctrl{Streamer: shot, Paused: false}
playbacks[index] = playback{ playbacks[index] = playback{
File: file, File: file,