diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-01 23:19:03 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-01 23:19:03 +0000 |
commit | 337e010345fa98f7b5425ef5cbf31e0ed582c678 (patch) | |
tree | 81eaae9f4ae8180a55fc42a8b4cc985ba5f34804 /gtk2_ardour/ardour_ui.cc | |
parent | 7c9c86af27d2cc6e2e9ad6afcff61b8a7873c287 (diff) |
Allocate some thread-local buffers for the GUI thread so that the PluginEqGui impulse analysis can use them (fixes #4418).
git-svn-id: svn://localhost/ardour2/branches/3.0@10387 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 7319be632e..cc173c80e3 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -78,6 +78,7 @@ #include "ardour/midi_track.h" #include "ardour/filesystem_paths.h" #include "ardour/filename_extensions.h" +#include "ardour/process_thread.h" typedef uint64_t microseconds_t; @@ -332,6 +333,8 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[]) starting.connect (sigc::mem_fun(*this, &ARDOUR_UI::startup)); stopping.connect (sigc::mem_fun(*this, &ARDOUR_UI::shutdown)); + _process_thread = new ProcessThread (); + _process_thread->init (); } /** @return true if a session was chosen and `apply' clicked, otherwise false if `cancel' was clicked */ @@ -3851,3 +3854,17 @@ ARDOUR_UI::ambiguous_file (std::string file, std::string /*path*/, std::vector<s dialog.run (); return dialog.get_which (); } + +/** Allocate our thread-local buffers */ +void +ARDOUR_UI::get_process_buffers () +{ + _process_thread->get_buffers (); +} + +/** Drop our thread-local buffers */ +void +ARDOUR_UI::drop_process_buffers () +{ + _process_thread->drop_buffers (); +} |