summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/vstfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour/vstfx.h')
-rwxr-xr-xlibs/ardour/ardour/vstfx.h87
1 files changed, 14 insertions, 73 deletions
diff --git a/libs/ardour/ardour/vstfx.h b/libs/ardour/ardour/vstfx.h
index 08534e408a..0f8772230b 100755
--- a/libs/ardour/ardour/vstfx.h
+++ b/libs/ardour/ardour/vstfx.h
@@ -18,93 +18,34 @@ void vstfx_set_error_function (void (*func)(const char *));
void vstfx_error (const char *fmt, ...);
-#include "ardour/vestige/aeffectx.h"
-
-typedef struct _VSTFX VSTFX;
-
-/*Structure used to describe the instance of VSTFX responsible for
- a particular plugin instance. These are connected together in a
- linked list*/
-
-struct _VSTFX
-{
- AEffect* plugin;
- int window; /* The plugin's parent X11 XWindow */
- int plugin_ui_window; /*The ID of the plugin UI window created by the plugin*/
- int xid; /* X11 XWindow */
-
- int want_resize; /*Set to signal the plugin resized its UI*/
- void* extra_data; /*Pointer to any extra data*/
-
- void* event_callback_thisptr;
- void (*eventProc) (void* event);
-
- VSTHandle* handle;
-
- int width;
- int height;
- int wantIdle;
- int destroy;
- int vst_version;
- int has_editor;
-
- int program_set_without_editor;
-
- int want_program;
- int want_chunk;
- int n_pending_keys;
- unsigned char* wanted_chunk;
- int wanted_chunk_size;
- int current_program;
- float *want_params;
- float *set_params;
-
- VSTKey pending_keys[16];
-
- int dispatcher_wantcall;
- int dispatcher_opcode;
- int dispatcher_index;
- int dispatcher_val;
- void * dispatcher_ptr;
- float dispatcher_opt;
- int dispatcher_retval;
-
- struct _VSTFX* next;
- pthread_mutex_t lock;
- pthread_cond_t window_status_change;
- pthread_cond_t plugin_dispatcher_called;
- pthread_cond_t window_created;
- int been_activated;
-};
-
/*API to vstfx*/
-extern int vstfx_launch_editor(VSTFX* vstfx);
-extern int vstfx_init (void* possible_hmodule);
+extern int vstfx_launch_editor (VSTState *);
+extern int vstfx_init (void *);
extern void vstfx_exit ();
extern VSTHandle * vstfx_load (const char*);
extern int vstfx_unload (VSTHandle *);
-extern VSTFX* vstfx_instantiate (VSTHandle *, audioMasterCallback, void *);
-extern void vstfx_close (VSTFX*);
+extern VSTState * vstfx_instantiate (VSTHandle *, audioMasterCallback, void *);
+extern void vstfx_close (VSTState*);
-extern int vstfx_create_editor (VSTFX* vstfx);
-extern int vstfx_run_editor (VSTFX*);
-extern void vstfx_destroy_editor (VSTFX*);
-extern int vstfx_get_XID (VSTFX*);
-extern void vstfx_move_window_into_view (VSTFX*);
+extern int vstfx_create_editor (VSTState *);
+extern int vstfx_run_editor (VSTState *);
+extern void vstfx_destroy_editor (VSTState *);
+extern int vstfx_get_XID (VSTState *);
+extern void vstfx_move_window_into_view (VSTState *);
-extern VSTInfo * vstfx_get_info (char *dllpathname);
+extern VSTInfo * vstfx_get_info (char *);
extern void vstfx_free_info (VSTInfo *);
-extern void vstfx_event_loop_remove_plugin (VSTFX* fst);
-extern int vstfx_call_dispatcher (VSTFX *vstfx, int opcode, int index, int val, void *ptr, float opt);
+extern void vstfx_event_loop_remove_plugin (VSTState *);
+extern int vstfx_call_dispatcher (VSTState *, int, int, int, void *, float);
/** Load a plugin state from a file.**/
-extern int vstfx_load_state (VSTFX* vstfx, char * filename);
+extern int vstfx_load_state (VSTState* vstfx, char * filename);
/** Save a plugin state to a file.**/
-extern bool vstfx_save_state (VSTFX* vstfx, char * filename);
+extern bool vstfx_save_state (VSTState* vstfx, char * filename);
#endif /* __vstfx_h__ */