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.
This commit is contained in:
Tobias Doerffel
2014-03-03 22:55:52 +01:00
parent b5183fdd5f
commit 2981a5994c

View File

@@ -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();
}