presets and banks saved correctly in audio plugin host. display seems to work also.

This commit is contained in:
Alex Birch
2018-04-13 01:14:07 +01:00
parent 7dc05c72c9
commit a82e7e450b
7 changed files with 70 additions and 13 deletions

View File

@ -243,8 +243,7 @@ void JuicySFAudioProcessor::setStateInformation (const void* data, int sizeInByt
if (auto* p = dynamic_cast<AudioProcessorParameterWithID*> (param))
p->setValue ((float) xmlState->getDoubleAttribute (p->paramID, p->getValue()));
fluidSynthModel.onFileNameChanged(soundFontPath);
fluidSynthModel.changePreset(lastBank, lastPreset);
fluidSynthModel.onFileNameChanged(soundFontPath, lastBank, lastPreset);
AudioProcessorEditor* editor = getActiveEditor();
if (editor != nullptr) {