push
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user