Files
artcraft/app/pages/PageEnigma/js/lip_sync_engine.ts
T
Michael Chung f3ca24183f 1.Made changes to OOP for the timeline to be explicit to what the functions are intended for.
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.
2024-03-27 16:55:46 -04:00

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;