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, ...);
35 extern int fst_init (void* possible_hmodule);
36 extern void fst_exit ();
38 extern VSTHandle* fst_load (const char*);
39 extern int fst_unload (VSTHandle*);
41 extern VSTState * fst_instantiate (VSTHandle *, audioMasterCallback amc, void* userptr);
42 extern void fst_close (VSTState *);
44 extern int fst_create_editor (VSTState* fst);
45 extern int fst_run_editor (VSTState *);
46 extern void fst_destroy_editor (VSTState *);
47 extern void fst_move_window_into_view (VSTState *);
49 extern VSTInfo *fst_get_info (char *dllpathname);
50 extern void fst_free_info (VSTInfo *info);
51 extern void fst_event_loop_remove_plugin (VSTState* fst);
52 extern int fst_call_dispatcher (VSTState *, int, int, int, void *, float);
55 * Load a plugin state from a file.
57 extern int fst_load_state (VSTState *, char *);
60 * Save a plugin state to a file.
62 extern int fst_save_state (VSTState *, char *);
64 extern int wine_pthread_create (pthread_t* thread_id, const pthread_attr_t* attr, void *(*function)(void*), void* arg);
71 #endif /* __fst_fst_h__ */