diff options
Diffstat (limited to 'src/server/ingen_lv2.cpp')
-rw-r--r-- | src/server/ingen_lv2.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index bc9e861f..e7a07e5a 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -17,7 +17,6 @@ */ #include <stdlib.h> -#include <time.h> #include <string> #include <vector> @@ -25,6 +24,7 @@ #include <glib.h> #include <glibmm/convert.h> #include <glibmm/miscutils.h> +#include <glibmm/timer.h> #include "lv2/lv2plug.in/ns/lv2core/lv2.h" @@ -234,9 +234,8 @@ public: private: virtual void _run() { - static const timespec main_rate = { 0, 125000000 }; // 1/8 second while (_engine->main_iteration()) { - nanosleep(&main_rate, NULL); + Glib::usleep(125000); // 1/8 second } } |