Prepare export-format codec-quality setting
[ardour.git] / libs / ardour / session_vst.cc
index 37887fa03ea6b38f2fd62ff6b5d110c0a481d24f..b4a584b1831dfa0277b54c03f2abb67c81fae933 100644 (file)
@@ -50,7 +50,8 @@ const char* Session::vst_can_do_strings[] = {
        X_("receiveVstMidiEvent"),
        X_("supportShell"),
        X_("shellCategory"),
-       X_("shellCategorycurID")
+       X_("shellCategorycurID"),
+       X_("sizeWindow")
 };
 const int Session::vst_can_do_string_count = sizeof (vst_can_do_strings) / sizeof (char*);
 
@@ -298,6 +299,7 @@ intptr_t Session::vst_callback (
        case audioMasterSetTime:
                SHOW_CALLBACK ("audioMasterSetTime");
                // VstTimenfo* in <ptr>, filter in <value>, not supported
+               return 0;
 
        case audioMasterTempoAt:
                SHOW_CALLBACK ("audioMasterTempoAt");
@@ -346,7 +348,7 @@ intptr_t Session::vst_callback (
                                plug->VSTSizeWindow (); /* EMIT SIGNAL */
                        }
                }
-               return 0;
+               return 1;
 
        case audioMasterGetSampleRate:
                SHOW_CALLBACK ("audioMasterGetSampleRate");
@@ -378,6 +380,7 @@ intptr_t Session::vst_callback (
        case audioMasterGetNextPlug:
                SHOW_CALLBACK ("audioMasterGetNextPlug");
                // output pin in <value> (-1: first to come), returns cEffect*
+               return 0;
 
        case audioMasterWillReplaceOrAccumulate:
                SHOW_CALLBACK ("audioMasterWillReplaceOrAccumulate");
@@ -436,7 +439,7 @@ intptr_t Session::vst_callback (
                SHOW_CALLBACK ("audioMasterGetVendorString");
                // fills <ptr> with a string identifying the vendor (max 64 char)
                strcpy ((char*) ptr, "Linux Audio Systems");
-               return 0;
+               return 1;
 
        case audioMasterGetProductString:
                SHOW_CALLBACK ("audioMasterGetProductString");
@@ -492,8 +495,9 @@ intptr_t Session::vst_callback (
        case audioMasterUpdateDisplay:
                SHOW_CALLBACK ("audioMasterUpdateDisplay");
                // something has changed, update 'multi-fx' display
-               if (effect) {
-                       effect->dispatcher(effect, effEditIdle, 0, 0, NULL, 0.0f);
+               /* TODO: consider emitting  ParameterChangedExternally() for each ctrl input */
+               if (session) {
+                       session->set_dirty ();
                }
                return 0;