summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/vst_types.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-11-14 21:04:01 +0100
committerRobin Gareus <robin@gareus.org>2016-11-14 21:06:18 +0100
commit8e3b6c9ac6b4d0e167ab116d197d32b0f8202e8b (patch)
tree94c6efafaecf1154f0aca72bb96fdb0ed110540a /libs/ardour/ardour/vst_types.h
parent48c470d51dbc3345b647904922cafc7cf51d20f4 (diff)
consolidate VSTState initialization
Diffstat (limited to 'libs/ardour/ardour/vst_types.h')
-rw-r--r--libs/ardour/ardour/vst_types.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/ardour/ardour/vst_types.h b/libs/ardour/ardour/vst_types.h
index b9c62e4fe1..936cab6173 100644
--- a/libs/ardour/ardour/vst_types.h
+++ b/libs/ardour/ardour/vst_types.h
@@ -133,6 +133,23 @@ struct LIBARDOUR_API _VSTState
pthread_cond_t plugin_dispatcher_called;
pthread_cond_t window_created;
int been_activated;
+
+ void init () {
+ pthread_mutex_init (&lock, 0);
+ pthread_cond_init (&window_status_change, 0);
+ pthread_cond_init (&plugin_dispatcher_called, 0);
+ pthread_cond_init (&window_created, 0);
+ want_program = -1;
+ want_chunk = 0;
+ n_pending_keys = 0;
+ has_editor = 0;
+ program_set_without_editor = 0;
+ linux_window = 0;
+ linux_plugin_ui_window = 0;
+ eventProc = 0;
+ extra_data = 0;
+ want_resize = 0;
+ }
};
typedef struct _VSTState VSTState;