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