1
0
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:
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: 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;
} }