TooB Spectum Analyzer

This commit is contained in:
Robin Davies
2022-02-04 07:06:09 -05:00
parent caa2aa1312
commit 5c5bf29d48
14 changed files with 584 additions and 86 deletions
+10 -4
View File
@@ -345,10 +345,14 @@ export const VuMeter =
addVuSubscription() {
this.removeVuSubscription();
if (this.props.instanceId !== -1) {
this.subscribedInstanceId = this.props.instanceId;
this.subscriptionHandle = this.model.addVuSubscription(this.props.instanceId, this.onVuChanged);
this.resetTelltales();
if (this.model.state.get() === State.Ready)
{
if (this.props.instanceId !== -1) {
this.subscribedInstanceId = this.props.instanceId;
this.subscriptionHandle = this.model.addVuSubscription(this.props.instanceId, this.onVuChanged);
this.resetTelltales();
}
}
}
removeVuSubscription() {
@@ -407,6 +411,8 @@ export const VuMeter =
if (state === State.Ready)
{
this.addVuSubscription(); // re-subscribe.
} else {
this.removeVuSubscription();
}
}