rm push/pop

This commit is contained in:
2026-02-26 08:14:27 -06:00
parent 31ce47ec12
commit 5182fa3d37

View File

@@ -202,7 +202,7 @@ soundwave.create = function(opts) {
v = player.voices[i]
done = v.stopped || (!v.loop && v.pos >= v.source.frames)
if (!done) {
push(active, v)
active[] = v
} else if (v.finish_hook) {
v.finish_hook()
}
@@ -228,7 +228,7 @@ soundwave.create = function(opts) {
if (opts.vol != null) newvoice.vol = opts.vol
}
push(player.voices, newvoice)
player.voices[] = newvoice
return newvoice
}
@@ -248,8 +248,8 @@ soundwave.create = function(opts) {
if (v.stopped) continue
chunk = pull_voice_chunk(v, nframes)
if (chunk) {
push(blobs, chunk)
push(vols, v.vol)
blobs[] = chunk
vols[] = v.vol
}
}