Notify VST when SFZ is changed by reload
This commit is contained in:
parent
70d26b5da5
commit
cbd1f60271
1 changed files with 5 additions and 0 deletions
|
|
@ -625,6 +625,11 @@ void SfizzVstProcessor::doBackgroundWork()
|
||||||
fprintf(stderr, "[Sfizz] sfz file has changed, reloading\n");
|
fprintf(stderr, "[Sfizz] sfz file has changed, reloading\n");
|
||||||
std::lock_guard<SpinMutex> lock(_processMutex);
|
std::lock_guard<SpinMutex> lock(_processMutex);
|
||||||
loadSfzFileOrDefault(*_synth, _state.sfzFile);
|
loadSfzFileOrDefault(*_synth, _state.sfzFile);
|
||||||
|
|
||||||
|
Steinberg::OPtr<Vst::IMessage> reply { allocateMessage() };
|
||||||
|
reply->setMessageID("LoadedSfz");
|
||||||
|
reply->getAttributes()->setBinary("File", _state.sfzFile.data(), _state.sfzFile.size());
|
||||||
|
sendMessage(reply);
|
||||||
}
|
}
|
||||||
else if (_synth->shouldReloadScala()) {
|
else if (_synth->shouldReloadScala()) {
|
||||||
fprintf(stderr, "[Sfizz] scala file has changed, reloading\n");
|
fprintf(stderr, "[Sfizz] scala file has changed, reloading\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue