Seek to 0, to allow loop
This commit is contained in:
parent
6f28271e47
commit
9aa0b3fe29
3
main.go
3
main.go
@ -105,6 +105,9 @@ func main() {
|
||||
playedItem = 0
|
||||
}
|
||||
|
||||
// In case of loop, ensure we are at the beginning of the stream
|
||||
playlist[playedItem].Seek(0)
|
||||
|
||||
// Resample if needed
|
||||
if formats[playedItem].SampleRate != SampleRate {
|
||||
return beep.Resample(3, formats[playedItem].SampleRate, SampleRate, playlist[playedItem])
|
||||
|
Loading…
x
Reference in New Issue
Block a user