mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-20 05:12:18 +02:00
audio/vorbis: Bug fix: Resampling didn't work correctly
This commit is contained in:
parent
a0a8d41ff6
commit
fbc7b3c884
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user