From 3e65c2ff9a20775e094d4d26dff20038b8def859 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Wed, 20 Nov 2019 23:45:44 +0100 Subject: [PATCH] Voices did not get created by default --- sfizz/Synth.cpp | 5 +++++ sfizz/Synth.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;