made audio only play when in playmode.

This commit is contained in:
Quicksticks-oss committed 2024-04-15 16:28:42 -04:00
1 parent 2f6b19dbb7
commit 3ee9872ecc
1 file changed
+4 -2
+4 -2
View File
@@ -511,7 +511,8 @@ export class TimeLine {
}
} else if (
element.type === ClipType.AUDIO &&
element.group !== ClipGroup.CHARACTER
element.group !== ClipGroup.CHARACTER &&
this.is_playing
) {
if (this.scrubber_frame_position + 1 >= element.length) {
this.audio_engine.stopClip(element.media_id);
@@ -520,7 +521,8 @@ export class TimeLine {
}
} else if (
element.type === ClipType.AUDIO &&
element.group === ClipGroup.CHARACTER
element.group === ClipGroup.CHARACTER &&
this.is_playing
) {
// we will remove this when we know which group it will come from character + audio === lip sync audio.
if (this.scrubber_frame_position + 1 >= element.length) {