Skip to content

Commit

Permalink
ZynAddSubFX: update buffer size when opening GUI
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tobydox committed Mar 3, 2014
1 parent b5183fd commit 2981a59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/zynaddsubfx/ZynAddSubFx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 2981a59

Please sign in to comment.