mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 01:12:03 +01:00
audio/internal/convert: Bug fix: invalid size comparison
This commit is contained in:
parent
079395dd6f
commit
d78a534a0b
@ -65,7 +65,7 @@ func (r *Resampling) src(i int) (float64, float64, error) {
|
||||
if i < 0 {
|
||||
return 0, 0, nil
|
||||
}
|
||||
if r.Size()/4 <= int64(i) {
|
||||
if r.size/4 <= int64(i) {
|
||||
return 0, 0, nil
|
||||
}
|
||||
nextPos := int64(i) / resamplingBufferSize
|
||||
|
Loading…
Reference in New Issue
Block a user