feat: persist track mute/solo status

This commit is contained in:
Xiaohan-Tian
2026-05-17 13:06:47 -07:00
parent cbd66ab4f6
commit 9c197ecd08
13 changed files with 285 additions and 21 deletions
+24
View File
@@ -37,6 +37,14 @@ export class KGTrack {
@Expose()
@WithDefault(AUDIO_INTERFACE_CONSTANTS.DEFAULT_TRACK_VOLUME)
protected volume: number = AUDIO_INTERFACE_CONSTANTS.DEFAULT_TRACK_VOLUME;
@Expose()
@WithDefault(false)
protected muted: boolean = false;
@Expose()
@WithDefault(false)
protected solo: boolean = false;
@Expose()
@Type(() => KGRegion, {
@@ -91,6 +99,14 @@ export class KGTrack {
return this.volume;
}
public getMuted(): boolean {
return this.muted;
}
public getSolo(): boolean {
return this.solo;
}
// Setters
public setName(name: string): void {
this.name = name;
@@ -120,6 +136,14 @@ export class KGTrack {
);
}
public setMuted(muted: boolean): void {
this.muted = muted;
}
public setSolo(solo: boolean): void {
this.solo = solo;
}
public setRegions(regions: KGRegion[]): void {
this.regions = regions;
}