From cbd1f6027106e1c726a205fba2eb8dc32f36c646 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Fri, 5 Feb 2021 17:33:16 +0100 Subject: [PATCH] Notify VST when SFZ is changed by reload --- vst/SfizzVstProcessor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vst/SfizzVstProcessor.cpp b/vst/SfizzVstProcessor.cpp index f318b269..972b34dc 100644 --- a/vst/SfizzVstProcessor.cpp +++ b/vst/SfizzVstProcessor.cpp @@ -625,6 +625,11 @@ void SfizzVstProcessor::doBackgroundWork() fprintf(stderr, "[Sfizz] sfz file has changed, reloading\n"); std::lock_guard lock(_processMutex); loadSfzFileOrDefault(*_synth, _state.sfzFile); + + Steinberg::OPtr reply { allocateMessage() }; + reply->setMessageID("LoadedSfz"); + reply->getAttributes()->setBinary("File", _state.sfzFile.data(), _state.sfzFile.size()); + sendMessage(reply); } else if (_synth->shouldReloadScala()) { fprintf(stderr, "[Sfizz] scala file has changed, reloading\n");