aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2017-03-15 10:33:22 +1300
committerMatthew Gregan <[email protected]>2017-03-15 10:33:22 +1300
commit11a7c6d4a27e7963979ed956e20b1d57ebe67ca5 (patch)
treecee2418c6cee5095bc3daaf44c9b33c9f42bcd35
parentd974ad6b5fb71bae0c0089cbeb54645dfe4ecbc9 (diff)
downloadcubeb-11a7c6d4a27e7963979ed956e20b1d57ebe67ca5.tar.gz
cubeb-11a7c6d4a27e7963979ed956e20b1d57ebe67ca5.zip
test_overload_callback: Use the standard STREAM_FORMAT definition.
-rw-r--r--test/test_overload_callback.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_overload_callback.cpp b/test/test_overload_callback.cpp
index 06da63e..a4ec1b2 100644
--- a/test/test_overload_callback.cpp
+++ b/test/test_overload_callback.cpp
@@ -17,7 +17,11 @@
#include "common.h"
#define SAMPLE_FREQUENCY 48000
+#if (defined(_WIN32) || defined(__WIN32__))
#define STREAM_FORMAT CUBEB_SAMPLE_FLOAT32LE
+#else
+#define STREAM_FORMAT CUBEB_SAMPLE_S16LE
+#endif
std::atomic<bool> load_callback{ false };