feat: persist track mute/solo status
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user