mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 20:32:12 +00:00
2.Internal state vs external events added public and private modifiers. 3.Renamed the clips to from track clip to clip to reduce the confusion and solidify the communication. 4.Modified Scene Saving and Loading and refactored to make it more consistent and understandable.
24 lines
575 B
TypeScript
24 lines
575 B
TypeScript
|
|
import { LipSyncClip } from "../datastructures/clips/lipsync_clip";
|
|
|
|
|
|
// needs to be apart of the editor window.
|
|
export class LipSyncEngine {
|
|
|
|
clips: { [key: string]: LipSyncClip } = {}
|
|
audio_sources: { [key: string]: AudioBufferSourceNode } = {}
|
|
version: number
|
|
|
|
constructor() {
|
|
this.clips = {}
|
|
this.audio_sources = {}
|
|
this.version = 1.0
|
|
}
|
|
|
|
load_object(object_uuid: string, audio_media_id: string) {
|
|
this.clips[object_uuid] = new LipSyncClip(this.version, audio_media_id, 1.0);
|
|
}
|
|
}
|
|
|
|
export default LipSyncEngine;
|