projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51dd5b5
)
MSVC doesn't have 'sleep()' (it uses 'Sleep()' with a capital 'S') so let's make...
author
John Emmas
<johne53@tiscali.co.uk>
Thu, 2 Jul 2015 07:16:44 +0000
(08:16 +0100)
committer
John Emmas
<johne53@tiscali.co.uk>
Thu, 2 Jul 2015 07:23:38 +0000
(08:23 +0100)
(see the note about possibly using 'Glib::usleep()' ??)
libs/backends/wavesaudio/waves_audiobackend.cc
patch
|
blob
|
history
diff --git
a/libs/backends/wavesaudio/waves_audiobackend.cc
b/libs/backends/wavesaudio/waves_audiobackend.cc
index 8619262d1c1570ce0c318780ac1047b43a1a38eb..8cd94c4e3411a5ebf359710b2c7153def591a4db 100644
(file)
--- a/
libs/backends/wavesaudio/waves_audiobackend.cc
+++ b/
libs/backends/wavesaudio/waves_audiobackend.cc
@@
-23,6
+23,13
@@
#include "ardour/runtime_functions.h"
+#ifdef COMPILER_MSVC
+#include <windows.h>
+#define sleep(X) Sleep((X) * 1000)
+// JE - Perhaps we should be using Glib::usleep() here, rather than sleep()?? But
+// that would make the Waves backend dependent on Glib (which is isn't, currently).
+#endif
+
using namespace ARDOUR;
#if defined __MINGW64__ || defined __MINGW32__