mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-09 11:31:27 +00:00
made audio only play when in playmode.
This commit is contained in:
1 parent
2f6b19dbb7
commit
3ee9872ecc
1 file changed
+4
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user