diff --git a/soundwave.cm b/soundwave.cm index 7613162..7effa1f 100644 --- a/soundwave.cm +++ b/soundwave.cm @@ -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 } }