summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2014-04-02 13:06:01 -0400
committerGary Scavone <gary@music.mcgill.ca>2014-04-02 13:06:01 -0400
commit986ffc39fd4cfac9c25a324511c1204f9d8ba760 (patch)
tree857a6a50b6e2806095fee8e243634e31ef54a4cf /tests
parent18e6f5126073320450438e99b4833cabc3347dba (diff)
Various WASAPI-related changes.
Diffstat (limited to 'tests')
-rw-r--r--tests/audioprobe.cpp1
-rw-r--r--tests/playraw.cpp2
-rw-r--r--tests/playsaw.cpp2
-rw-r--r--tests/record.cpp2
-rw-r--r--tests/teststops.cpp2
5 files changed, 5 insertions, 4 deletions
diff --git a/tests/audioprobe.cpp b/tests/audioprobe.cpp
index a69437f..1b93908 100644
--- a/tests/audioprobe.cpp
+++ b/tests/audioprobe.cpp
@@ -18,6 +18,7 @@ int main()
apiMap[RtAudio::MACOSX_CORE] = "OS-X Core Audio";
apiMap[RtAudio::WINDOWS_ASIO] = "Windows ASIO";
apiMap[RtAudio::WINDOWS_DS] = "Windows Direct Sound";
+ apiMap[RtAudio::WINDOWS_WASAPI] = "Windows WASAPI";
apiMap[RtAudio::UNIX_JACK] = "Jack Client";
apiMap[RtAudio::LINUX_ALSA] = "Linux ALSA";
apiMap[RtAudio::LINUX_PULSE] = "Linux PulseAudio";
diff --git a/tests/playraw.cpp b/tests/playraw.cpp
index 03212d7..75e7d13 100644
--- a/tests/playraw.cpp
+++ b/tests/playraw.cpp
@@ -44,7 +44,7 @@ typedef double MY_TYPE;
*/
// Platform-dependent sleep routines.
-#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ )
+#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ ) || defined( __WINDOWS_WASAPI__ )
#include <windows.h>
#define SLEEP( milliseconds ) Sleep( (DWORD) milliseconds )
#else // Unix variants
diff --git a/tests/playsaw.cpp b/tests/playsaw.cpp
index dc36d4c..2be179b 100644
--- a/tests/playsaw.cpp
+++ b/tests/playsaw.cpp
@@ -41,7 +41,7 @@ typedef double MY_TYPE;
*/
// Platform-dependent sleep routines.
-#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ )
+#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ ) || defined( __WINDOWS_WASAPI__ )
#include <windows.h>
#define SLEEP( milliseconds ) Sleep( (DWORD) milliseconds )
#else // Unix variants
diff --git a/tests/record.cpp b/tests/record.cpp
index 56b59b4..d16ea49 100644
--- a/tests/record.cpp
+++ b/tests/record.cpp
@@ -38,7 +38,7 @@ typedef double MY_TYPE;
*/
// Platform-dependent sleep routines.
-#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ )
+#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ ) || defined( __WINDOWS_WASAPI__ )
#include <windows.h>
#define SLEEP( milliseconds ) Sleep( (DWORD) milliseconds )
#else // Unix variants
diff --git a/tests/teststops.cpp b/tests/teststops.cpp
index 2cfccb4..5c6ed38 100644
--- a/tests/teststops.cpp
+++ b/tests/teststops.cpp
@@ -21,7 +21,7 @@
#define REPETITIONS 10
// Platform-dependent sleep routines.
-#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ )
+#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ ) || defined( __WINDOWS_WASAPI__ )
#include <windows.h>
#define SLEEP( milliseconds ) Sleep( (DWORD) milliseconds )
#else // Unix variants