mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
audi/internal/conver: Fix ring-buffer-like slice usages
This commit is contained in:
parent
335fefa4fd
commit
7422a3353a
@ -137,7 +137,8 @@ func (r *Resampling) src(i int64) (float64, float64, error) {
|
|||||||
p := r.lruSrcBlocks[0]
|
p := r.lruSrcBlocks[0]
|
||||||
delete(r.srcBufL, p)
|
delete(r.srcBufL, p)
|
||||||
delete(r.srcBufR, p)
|
delete(r.srcBufR, p)
|
||||||
r.lruSrcBlocks = r.lruSrcBlocks[1:]
|
copy(r.lruSrcBlocks, r.lruSrcBlocks[1:])
|
||||||
|
r.lruSrcBlocks = r.lruSrcBlocks[:len(r.lruSrcBlocks)-1]
|
||||||
}
|
}
|
||||||
r.lruSrcBlocks = append(r.lruSrcBlocks, r.srcBlock)
|
r.lruSrcBlocks = append(r.lruSrcBlocks, r.srcBlock)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user