mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-07 23:25:00 +00:00
Ensures proper dereferencing of the std::optional.
This commit is contained in:
@@ -44,7 +44,7 @@ template <int envelope_precision, int period_precision> class EnvelopeGenerator
|
|||||||
case Phase::Damp:
|
case Phase::Damp:
|
||||||
update_decay(oscillator, 12);
|
update_decay(oscillator, 12);
|
||||||
if(attenuation_ == 511) {
|
if(attenuation_ == 511) {
|
||||||
will_attack_();
|
(*will_attack_)();
|
||||||
phase_ = Phase::Attack;
|
phase_ = Phase::Attack;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -118,7 +118,7 @@ template <int envelope_precision, int period_precision> class EnvelopeGenerator
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
will_attack_();
|
(*will_attack_)();
|
||||||
}
|
}
|
||||||
phase_ = Phase::Attack;
|
phase_ = Phase::Attack;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user