8 #include "ardour/vst_types.h"
9 #include "ardour/vestige/aeffectx.h"
12 * Display FST error message.
14 * Set via fst_set_error_function(), otherwise a FST-provided
15 * default will print @a msg (plus a newline) to stderr.
17 * @param msg error message text (no newline at end).
19 extern void (*fst_error_callback)(const char *msg);
22 * Set the @ref fst_error_callback for error message display.
24 * The FST library provides two built-in callbacks for this purpose:
25 * default_fst_error_callback() and silent_fst_error_callback().
27 void fst_set_error_function (void (*func)(const char *));
29 void fst_error (const char *fmt, ...);
31 typedef struct _FST FST;
32 typedef struct _FSTHandle FSTHandle;
33 typedef struct _FSTInfo FSTInfo;
49 int canProcessReplacing; // what do we need this for ?
51 // i think we should save the parameter Info Stuff soon.
52 // struct VstParameterInfo *infos;
57 typedef AEffect * (*main_entry_t)(audioMasterCallback);
63 char* nameptr; /* ptr returned from strdup() etc. */
64 //struct AEffect* (*main_entry)(audioMasterCallback);
65 main_entry_t main_entry;
73 void* window; /* win32 HWND */
74 int xid; /* X11 XWindow */
83 int program_set_without_editor;
86 unsigned char *wanted_chunk;
87 int wanted_chunk_size;
92 VSTKey pending_keys[16];
95 int dispatcher_wantcall;
96 int dispatcher_opcode;
99 void * dispatcher_ptr;
100 float dispatcher_opt;
101 int dispatcher_retval;
104 pthread_mutex_t lock;
105 pthread_cond_t window_status_change;
106 pthread_cond_t plugin_dispatcher_called;
114 extern int fst_init (void* possible_hmodule);
115 extern void fst_exit ();
117 extern FSTHandle* fst_load (const char*);
118 extern int fst_unload (FSTHandle*);
120 extern FST* fst_instantiate (FSTHandle*, audioMasterCallback amc, void* userptr);
121 extern void fst_close (FST*);
123 extern int fst_create_editor (FST* fst);
124 extern int fst_run_editor (FST*);
125 extern void fst_destroy_editor (FST*);
126 extern int fst_get_XID (FST*);
127 extern void fst_move_window_into_view (FST*);
129 extern FSTInfo *fst_get_info (char *dllpathname);
130 extern void fst_free_info (FSTInfo *info);
131 extern void fst_event_loop_remove_plugin (FST* fst);
132 extern int fst_call_dispatcher(FST *fst, int opcode, int index, int val, void *ptr, float opt );
135 * Load a plugin state from a file.
137 extern int fst_load_state (FST * fst, char * filename);
140 * Save a plugin state to a file.
142 extern int fst_save_state (FST * fst, char * filename);
144 extern int wine_pthread_create (pthread_t* thread_id, const pthread_attr_t* attr, void *(*function)(void*), void* arg);
151 #endif /* __fst_fst_h__ */