Voices did not get created by default

This commit is contained in:
Paul Ferrand 2019-11-20 23:45:44 +01:00
parent 3810083d7f
commit 3e65c2ff9a
2 changed files with 6 additions and 1 deletions

View file

@ -35,6 +35,11 @@
#include <utility>
using namespace std::literals;
sfz::Synth::Synth()
{
resetVoices(this->numVoices);
}
sfz::Synth::Synth(int numVoices)
{
resetVoices(numVoices);

View file

@ -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;