aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAlex Chronopoulos <[email protected]>2020-01-22 13:00:49 +0200
committerPaul Adenot <[email protected]>2020-01-22 12:00:49 +0100
commitd4b23d1e9b2857b5c6020c58b183fdd8dbe36921 (patch)
treef6725127a2f60788eb35813ad3b4892deba2e14f /test
parent0adc5ea9650acdbe5e1cc78ee0d0398400350c83 (diff)
downloadcubeb-d4b23d1e9b2857b5c6020c58b183fdd8dbe36921.tar.gz
cubeb-d4b23d1e9b2857b5c6020c58b183fdd8dbe36921.zip
fix a few warnings (#571)
Diffstat (limited to 'test')
-rw-r--r--test/test_loopback.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_loopback.cpp b/test/test_loopback.cpp
index 2c600ee..9977f6f 100644
--- a/test/test_loopback.cpp
+++ b/test/test_loopback.cpp
@@ -26,7 +26,7 @@
const uint32_t SAMPLE_FREQUENCY = 48000;
const uint32_t TONE_FREQUENCY = 440;
const double OUTPUT_AMPLITUDE = 0.25;
-const uint32_t NUM_FRAMES_TO_OUTPUT = SAMPLE_FREQUENCY / 20; /* play ~50ms of samples */
+const int32_t NUM_FRAMES_TO_OUTPUT = SAMPLE_FREQUENCY / 20; /* play ~50ms of samples */
template<typename T> T ConvertSampleToOutput(double input);
template<> float ConvertSampleToOutput(double input) { return float(input); }