From 89bd583e18d435cafc6d23d28c5e49cd16717431 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Wed, 21 Jan 2026 09:04:43 -0600 Subject: [PATCH] push --- soundwave.cm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/soundwave.cm b/soundwave.cm index 159f72e..d5ce323 100644 --- a/soundwave.cm +++ b/soundwave.cm @@ -190,7 +190,7 @@ soundwave.create = function(opts) { var v = player.voices[i] var done = v.stopped || (!v.loop && v.pos >= v.source.frames) if (!done) { - active.push(v) + push(active, v) } else if (v.finish_hook) { v.finish_hook() } @@ -216,7 +216,7 @@ soundwave.create = function(opts) { if (opts.vol != null) newvoice.vol = opts.vol } - player.voices.push(newvoice) + push(player.voices, newvoice) return newvoice } @@ -233,8 +233,8 @@ soundwave.create = function(opts) { if (v.stopped) continue var chunk = pull_voice_chunk(v, frames) if (chunk) { - blobs.push(chunk) - vols.push(v.vol) + push(blobs, chunk) + push(vols, v.vol) } }