From 132b7c7df4f9ba33ee1970b0c2d249a57c9e9a3f Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 28 Sep 2009 13:45:58 +0200 Subject: [PATCH] RemoteVstPlugin: removed plugin dispatching in hostCallback There's no need to call plugin dispatcher in hostCallback. It makes plugins like Garritan Personal Orchestra 4 lock up. After removing these calls the affected plugins work. (cherry picked from commit 44e25a6ad5b37c1c42944885c8d8cc4f9816b831) --- plugins/vst_base/remote_vst_plugin.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/vst_base/remote_vst_plugin.cpp b/plugins/vst_base/remote_vst_plugin.cpp index e2c96e971..0f9ba6c23 100644 --- a/plugins/vst_base/remote_vst_plugin.cpp +++ b/plugins/vst_base/remote_vst_plugin.cpp @@ -1069,14 +1069,10 @@ VstIntPtr RemoteVstPlugin::hostCallback( AEffect * _effect, VstInt32 _opcode, case audioMasterGetSampleRate: SHOW_CALLBACK( "amc: audioMasterGetSampleRate\n" ); - __plugin->pluginDispatch( effSetSampleRate, - 0, 0, NULL, (float)__plugin->sampleRate() ); return __plugin->sampleRate(); case audioMasterGetBlockSize: SHOW_CALLBACK( "amc: audioMasterGetBlockSize\n" ); - __plugin->pluginDispatch( effSetBlockSize, - 0, __plugin->bufferSize() ); return __plugin->bufferSize();