aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_tone.cpp
diff options
context:
space:
mode:
authorAlex Chronopoulos <[email protected]>2018-10-18 16:57:01 +0200
committerGitHub <[email protected]>2018-10-18 16:57:01 +0200
commit5066cfcf4285e44e5e0f7ba8fe3fa4d5d734e2b2 (patch)
tree0c0f1076386cf809d76d125b6121f8426b23a6d0 /test/test_tone.cpp
parentd4b8c31cfd0a1de95f3925c5d88612baa41a2590 (diff)
downloadcubeb-5066cfcf4285e44e5e0f7ba8fe3fa4d5d734e2b2.tar.gz
cubeb-5066cfcf4285e44e5e0f7ba8fe3fa4d5d734e2b2.zip
tests: check correctly the audio buffer values range (BMO 1484541). (#461)
* tests: check correctly the audio buffer values range (BMO 1484541). * tests: create a comfortable way to enable logs in tests * duplex test: check audio range correctly and change the input channel to stereo to avoid AD mixer (BMO 1484541). * test_duplex: Revert back input channel to mono
Diffstat (limited to 'test/test_tone.cpp')
-rw-r--r--test/test_tone.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_tone.cpp b/test/test_tone.cpp
index 09bc2a7..de4c526 100644
--- a/test/test_tone.cpp
+++ b/test/test_tone.cpp
@@ -16,9 +16,13 @@
#include <memory>
#include <limits.h>
#include "cubeb/cubeb.h"
-#include "common.h"
#include <atomic>
+//#define ENABLE_NORMAL_LOG
+//#define ENABLE_VERBOSE_LOG
+#include "common.h"
+
+
#define SAMPLE_FREQUENCY 48000
#define STREAM_FORMAT CUBEB_SAMPLE_S16LE