mute bug solved. Noe plays while being modified

This commit is contained in:
2022-07-11 20:03:12 +02:00
parent e0b349496a
commit ee84a7883a
2 changed files with 57 additions and 50 deletions

View File

@@ -38,7 +38,7 @@ void toneGen::setup(const uint8_t note, const uint8_t instrument, const uint8_t
this->instrument = instrument;
this->volume = volume;
this->effect = effect;
this->muted = false;
//this->muted = false;
this->nominal_volume = float(volume) / 15.0f;
this->current_volume = this->effect == CHIPTUNE_EFFECT_FADEIN ? 0.0f : this->nominal_volume;