From fbc7b3c884e80b788488ce16f81af011d0fb9ecc Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 19 Jan 2021 00:41:47 +0900 Subject: [PATCH] audio/vorbis: Bug fix: Resampling didn't work correctly --- audio/vorbis/vorbis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/vorbis/vorbis.go b/audio/vorbis/vorbis.go index f90d3e290..700089bf1 100644 --- a/audio/vorbis/vorbis.go +++ b/audio/vorbis/vorbis.go @@ -160,7 +160,7 @@ func DecodeWithSampleRate(sampleRate int, src io.ReadSeeker) (*Stream, error) { size *= 2 } if origSampleRate != sampleRate { - r := convert.NewResampling(s, size, sampleRate, sampleRate) + r := convert.NewResampling(s, size, origSampleRate, sampleRate) s = r size = r.Length() }