mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01: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
|
size *= 2
|
||||||
}
|
}
|
||||||
if origSampleRate != sampleRate {
|
if origSampleRate != sampleRate {
|
||||||
r := convert.NewResampling(s, size, sampleRate, sampleRate)
|
r := convert.NewResampling(s, size, origSampleRate, sampleRate)
|
||||||
s = r
|
s = r
|
||||||
size = r.Length()
|
size = r.Length()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user