add EPA stuff from 2.X
[ardour.git] / libs / fst / vstwin.c
index 09ca8f18d32d9109f2340b9e10e367cd16b2a4f2..007a825d53bca67578f97ff111a63d8ef578ca6b 100644 (file)
@@ -71,6 +71,7 @@ fst_new ()
        pthread_cond_init (&fst->window_status_change, NULL);
        pthread_cond_init (&fst->plugin_dispatcher_called, NULL);
        fst->want_program = -1;
+       fst->want_chunk = 0;
        fst->current_program = -1;
        return fst;
 }
@@ -179,6 +180,11 @@ again:
                                        fst->current_program = fst->plugin->dispatcher (fst->plugin, 3, /* effGetProgram */ 0, 0, NULL, 0);
                                        fst->want_program = -1; 
                                }
+
+                               if (fst->want_chunk == 1) {
+                                       fst->plugin->dispatcher (fst->plugin, 24 /* effSetChunk */, 1, fst->wanted_chunk_size, fst->wanted_chunk, 0);
+                                       fst->want_chunk = 0;
+                               }
                                
                                if(fst->dispatcher_wantcall) {
                                        fst->dispatcher_retval = fst->plugin->dispatcher( fst->plugin,