diff --git a/synth/midi_synth.h b/synth/midi_synth.h index 11d6e96..bab3a12 100644 --- a/synth/midi_synth.h +++ b/synth/midi_synth.h @@ -2,6 +2,7 @@ #include "ivoice.h" #include "midi_event.h" #include "voice_allocator.h" +#include #include #include @@ -12,7 +13,7 @@ namespace trnr { template class midi_synth : public voice_allocator { public: - midi_synth(int _n_voices) + midi_synth() : m_voices_active {false} { // checks whether template derives from ivoice