diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-10 17:11:10 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-10 17:11:10 -0500 |
commit | 658bb3ccd43658de18fbd43cd91a8e66650e27a7 (patch) | |
tree | 6a64705a20919b8d53b73601d0c3b4f4df6f5b15 /gtk2_ardour/linux_vst_gui_support.cc | |
parent | 3020b224fa2d6e1b6b8a576e8e8e211e0585f2a2 (diff) | |
parent | b1231696caa7d08c80055ca59b18f4b634dc47cf (diff) |
finished merge of cairocanvas with windows and windows+cc branches
Diffstat (limited to 'gtk2_ardour/linux_vst_gui_support.cc')
-rw-r--r-- | gtk2_ardour/linux_vst_gui_support.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/linux_vst_gui_support.cc b/gtk2_ardour/linux_vst_gui_support.cc index 6eec688a7c..4d90bdd4aa 100644 --- a/gtk2_ardour/linux_vst_gui_support.cc +++ b/gtk2_ardour/linux_vst_gui_support.cc @@ -33,6 +33,7 @@ #include <pthread.h> #include <signal.h> #include <glib.h> +#include <glibmm/timer.h> #include "ardour/linux_vst_support.h" @@ -377,7 +378,7 @@ void* gui_event_loop (void* ptr) /*We don't want to use all the CPU.. */ - usleep(1000); + Glib::usleep(1000); LXVST_sched_event_timer++; @@ -706,7 +707,7 @@ vstfx_launch_editor (VSTState* vstfx) /*QUIRK - some plugins need a slight delay after opening the editor before you can ask the window size or they might return zero - specifically discoDSP */ - usleep(100000); + Glib::usleep(100000); /*Now we can find out how big the parent window should be (and try) to resize it*/ |