Sampling corrected
This commit is contained in:
parent
ef2187d984
commit
53d7f10960
Binary file not shown.
|
@ -49,9 +49,9 @@ func mustLoadStream(p string) *beep.Buffer {
|
||||||
defer streamer.Close()
|
defer streamer.Close()
|
||||||
|
|
||||||
newFormat := format
|
newFormat := format
|
||||||
// newFormat.SampleRate = format.SampleRate / 4
|
newFormat.SampleRate = format.SampleRate / 4
|
||||||
// newFormat.SampleRate = format.SampleRate / 2
|
// newFormat.SampleRate = format.SampleRate / 2
|
||||||
newFormat.SampleRate = format.SampleRate
|
// newFormat.SampleRate = format.SampleRate
|
||||||
resample := beep.Resample(4, format.SampleRate, newFormat.SampleRate, streamer)
|
resample := beep.Resample(4, format.SampleRate, newFormat.SampleRate, streamer)
|
||||||
|
|
||||||
buffer := beep.NewBuffer(newFormat)
|
buffer := beep.NewBuffer(newFormat)
|
||||||
|
|
Loading…
Reference in New Issue