diff --git a/sfizz/Synth.cpp b/sfizz/Synth.cpp index d966ed8c..a026a425 100644 --- a/sfizz/Synth.cpp +++ b/sfizz/Synth.cpp @@ -35,6 +35,11 @@ #include using namespace std::literals; +sfz::Synth::Synth() +{ + resetVoices(this->numVoices); +} + sfz::Synth::Synth(int numVoices) { resetVoices(numVoices); diff --git a/sfizz/Synth.h b/sfizz/Synth.h index 527771f2..7cffeac2 100644 --- a/sfizz/Synth.h +++ b/sfizz/Synth.h @@ -39,7 +39,7 @@ namespace sfz { class Synth : public Parser { public: - Synth() {} + Synth(); Synth(int numVoices); bool loadSfzFile(const fs::path& file) final; int getNumRegions() const noexcept;