Wait for reply when updating sample rate

This commit is contained in:
DomClark
2017-12-27 00:15:49 +00:00
committed by Hyunjin Song
parent 709fc7948b
commit d0b3be7f00
3 changed files with 9 additions and 6 deletions

View File

@@ -636,12 +636,7 @@ void RemoteVstPlugin::init( const std::string & _plugin_file )
updateInOutCount();
updateBufferSize();
// some plugins have to set samplerate during init
if( m_vstSyncData->hasSHM )
{
updateSampleRate();
}
updateSampleRate();
/* set program to zero */
/* i comment this out because it breaks dfx Geometer

View File

@@ -306,6 +306,7 @@ void VstPlugin::updateSampleRate()
lock();
sendMessage( message( IdSampleRateInformation ).
addInt( Engine::mixer()->processingSampleRate() ) );
waitForMessage( IdInformationUpdated, true );
unlock();
}