diff options
Diffstat (limited to 'libs/ardour/session_vst.cc')
-rw-r--r-- | libs/ardour/session_vst.cc | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc index c746a9d388..3f2054aadc 100644 --- a/libs/ardour/session_vst.cc +++ b/libs/ardour/session_vst.cc @@ -90,7 +90,7 @@ intptr_t Session::vst_callback ( case audioMasterVersion: SHOW_CALLBACK ("amc: audioMasterVersion\n"); // vst version, currently 2 (0 for older) - return 2; + return 2; // XXX 2400 case audioMasterCurrentId: SHOW_CALLBACK ("amc: audioMasterCurrentId\n"); @@ -102,6 +102,24 @@ intptr_t Session::vst_callback ( SHOW_CALLBACK ("amc: audioMasterIdle\n"); // call application idle routine (this will // call effEditIdle for all open editors too) + +#if 0 // TODO -> emit to GUI OR better delegete to fst/fst + + // This allows the main GUI window to update if needed. + // Some plugins take over the GUI event loop + // which causes the main GUI to freeze while the plugin GUI continues to run. This code + // prevents the main GUI from being frozen. + + do { +#ifdef GDK_WINDOWING_X11 + gtk_main_iteration_do(false); +#else + gtk_main_iteration() +#endif + } while (gtk_events_pending()); +#endif + printf("audioMasterIdle\n"); + if (effect) { effect->dispatcher(effect, effEditIdle, 0, 0, NULL, 0.0f); } @@ -404,7 +422,7 @@ intptr_t Session::vst_callback ( case audioMasterCanDo: SHOW_CALLBACK ("amc: audioMasterCanDo\n"); - // string in ptr, see below + // string in ptr, (const char*)ptr return 0; case audioMasterGetLanguage: |