Mute sounds
This commit is contained in:
parent
32e6549b99
commit
269eaf0a04
|
|
@ -2740,10 +2740,11 @@ function playPause() {
|
||||||
playing = !playing
|
playing = !playing
|
||||||
if (playing) {
|
if (playing) {
|
||||||
for (let audioLayer of context.activeObject.audioLayers) {
|
for (let audioLayer of context.activeObject.audioLayers) {
|
||||||
console.log(1)
|
if (audioLayer.audible) {
|
||||||
for (let i in audioLayer.sounds) {
|
for (let i in audioLayer.sounds) {
|
||||||
let sound = audioLayer.sounds[i]
|
let sound = audioLayer.sounds[i]
|
||||||
sound.player.start(0,context.activeObject.currentFrameNum / config.framerate)
|
sound.player.start(0,context.activeObject.currentFrameNum / config.framerate)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
advanceFrame()
|
advanceFrame()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue