Merge branch 'bugfix/voice-changes-2' into develop
This commit is contained in:
commit
77c0f23369
1 changed files with 6 additions and 0 deletions
|
|
@ -532,6 +532,12 @@ void sfz::Synth::resetVoices(int numVoices)
|
||||||
voices.clear();
|
voices.clear();
|
||||||
for (int i = 0; i < numVoices; ++i)
|
for (int i = 0; i < numVoices; ++i)
|
||||||
voices.push_back(std::make_unique<Voice>(midiState));
|
voices.push_back(std::make_unique<Voice>(midiState));
|
||||||
|
|
||||||
|
for (auto& voice: voices) {
|
||||||
|
voice->setSampleRate(this->sampleRate);
|
||||||
|
voice->setSamplesPerBlock(this->samplesPerBlock);
|
||||||
|
}
|
||||||
|
|
||||||
voiceViewArray.reserve(numVoices);
|
voiceViewArray.reserve(numVoices);
|
||||||
this->numVoices = numVoices;
|
this->numVoices = numVoices;
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue