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,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) {