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