Voices did not get created by default
This commit is contained in:
parent
3810083d7f
commit
3e65c2ff9a
2 changed files with 6 additions and 1 deletions
|
|
@ -35,6 +35,11 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
using namespace std::literals;
|
using namespace std::literals;
|
||||||
|
|
||||||
|
sfz::Synth::Synth()
|
||||||
|
{
|
||||||
|
resetVoices(this->numVoices);
|
||||||
|
}
|
||||||
|
|
||||||
sfz::Synth::Synth(int numVoices)
|
sfz::Synth::Synth(int numVoices)
|
||||||
{
|
{
|
||||||
resetVoices(numVoices);
|
resetVoices(numVoices);
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ namespace sfz {
|
||||||
|
|
||||||
class Synth : public Parser {
|
class Synth : public Parser {
|
||||||
public:
|
public:
|
||||||
Synth() {}
|
Synth();
|
||||||
Synth(int numVoices);
|
Synth(int numVoices);
|
||||||
bool loadSfzFile(const fs::path& file) final;
|
bool loadSfzFile(const fs::path& file) final;
|
||||||
int getNumRegions() const noexcept;
|
int getNumRegions() const noexcept;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue