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) } }