Mute sounds

This commit is contained in:
Skyler Lehmkuhl 2024-12-25 14:17:35 -05:00
parent 32e6549b99
commit 269eaf0a04
1 changed files with 5 additions and 4 deletions

View File

@ -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()