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:
Tobias Doerffel
2009-04-18 17:43:30 +02:00
parent 1802b91e55
commit 75382de976

View File

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