ZynAddSubFX: do not lock up after rendering project
Do not lock up after rendering project by calling waitForInitDone() on our own (instead of in RemotePlugin constructor) with busy waiting disabled.
This commit is contained in:
@@ -222,7 +222,9 @@ void zynAddSubFx::updateSampleRate( void )
|
||||
void zynAddSubFx::initRemotePlugin( void )
|
||||
{
|
||||
delete m_plugin;
|
||||
m_plugin = new remotePlugin( "remote_zynaddsubfx" );
|
||||
m_plugin = new remotePlugin( "remote_zynaddsubfx", false );
|
||||
m_plugin->lock();
|
||||
m_plugin->waitForInitDone( false );
|
||||
|
||||
m_plugin->sendMessage(
|
||||
remotePlugin::message( IdZasfPresetDirectory ).
|
||||
@@ -230,6 +232,7 @@ void zynAddSubFx::initRemotePlugin( void )
|
||||
( configManager::inst()->factoryPresetsDir() +
|
||||
QDir::separator() + "ZynAddSubFX" ).
|
||||
toStdString() ) );
|
||||
m_plugin->unlock();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user