1
0
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:
Thomas Harte 2020-05-03 21:57:15 -04:00
parent 94614ae4c3
commit e929d5d819

View File

@ -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;
}