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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user