Sampling corrected

This commit is contained in:
starcalc 2022-10-16 19:19:19 +02:00
parent ef2187d984
commit 53d7f10960
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -49,9 +49,9 @@ func mustLoadStream(p string) *beep.Buffer {
defer streamer.Close()
newFormat := format
// newFormat.SampleRate = format.SampleRate / 4
newFormat.SampleRate = format.SampleRate / 4
// newFormat.SampleRate = format.SampleRate / 2
newFormat.SampleRate = format.SampleRate
// newFormat.SampleRate = format.SampleRate
resample := beep.Resample(4, format.SampleRate, newFormat.SampleRate, streamer)
buffer := beep.NewBuffer(newFormat)