From 2981a5994c7f170fed2173052b1731297c321205 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 3 Mar 2014 22:55:52 +0100 Subject: [PATCH] ZynAddSubFX: update buffer size when opening GUI When opening the ZynAddSubFX GUI the buffer size information was not retrieved properly and caused problems when setting a low global buffer size in LMMS. We update the buffer size in ZynAddSubFX manually now as as a temporary workaround until the VST synchronization feature gets stripped out of the RemotePluginClient class. Closes #335. --- plugins/zynaddsubfx/ZynAddSubFx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/zynaddsubfx/ZynAddSubFx.cpp b/plugins/zynaddsubfx/ZynAddSubFx.cpp index 6af6aff16bf..74512a83e89 100644 --- a/plugins/zynaddsubfx/ZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/ZynAddSubFx.cpp @@ -444,6 +444,10 @@ void ZynAddSubFxInstrument::initPlugin() m_remotePlugin->updateSampleRate( engine::mixer()->processingSampleRate() ); + // temporary workaround until the VST synchronization feature gets stripped out of the RemotePluginClient class + // causing not to send buffer size information requests + m_remotePlugin->sendMessage( RemotePlugin::message( IdBufferSizeInformation ).addInt( engine::mixer()->framesPerPeriod() ) ); + m_remotePlugin->showUI(); m_remotePlugin->unlock(); }