gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 4c9e7167a4c67d7861463937ea57e2a916a6f5ee
parent d377804e36b20623ccd7e21e264a97aaf91d62f4
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Thu, 23 Sep 2021 18:37:50 +0200

do not use try-lock in midi event receiver of controller as important event could get lost

Diffstat:
Msource/jucePlugin/VirusController.cpp | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/source/jucePlugin/VirusController.cpp b/source/jucePlugin/VirusController.cpp @@ -1357,10 +1357,8 @@ namespace Virus void Controller::dispatchVirusOut(const std::vector<synthLib::SMidiEvent> &newData) { - const juce::ScopedTryLock sl(m_eventQueueLock); - if (!sl.isLocked()) - return; + const juce::ScopedLock sl(m_eventQueueLock); - m_virusOut.insert(m_virusOut.end(), newData.begin(), newData.end()); + m_virusOut.insert(m_virusOut.end(), newData.begin(), newData.end()); } }; // namespace Virus