Record audio tracks

This commit is contained in:
Skyler Lehmkuhl
2025-10-23 01:08:45 -04:00
parent 48ec738027
commit 20c3b820a3
26 changed files with 12673 additions and 5192 deletions
+3 -3
View File
@@ -158,7 +158,7 @@ class GraphicsObject {
this.currentFrameNum = 0;
this.currentLayer = 0;
this.layers = []
this.audioLayers = []
this.audioTracks = []
}
static fromJSON(json) {
const graphicsObject = new GraphicsObject(json.idx)
@@ -174,8 +174,8 @@ class GraphicsObject {
for (let layer of json.layers) {
graphicsObject.layers.push(Layer.fromJSON(layer))
}
for (let audioLayer of json.audioLayers) {
graphicsObject.audioLayers.push(AudioLayer.fromJSON(audioLayer))
for (let audioLayer of json.audioTracks) {
graphicsObject.audioTracks.push(AudioTrack.fromJSON(audioLayer))
}
return graphicsObject
}