diff --git a/audio/internal/convert/resampling.go b/audio/internal/convert/resampling.go index a16976aa4..a56a05503 100644 --- a/audio/internal/convert/resampling.go +++ b/audio/internal/convert/resampling.go @@ -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