diff options
author | Alex Chronopoulos <[email protected]> | 2020-01-22 13:00:49 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2020-01-22 12:00:49 +0100 |
commit | d4b23d1e9b2857b5c6020c58b183fdd8dbe36921 (patch) | |
tree | f6725127a2f60788eb35813ad3b4892deba2e14f /test/test_loopback.cpp | |
parent | 0adc5ea9650acdbe5e1cc78ee0d0398400350c83 (diff) | |
download | cubeb-d4b23d1e9b2857b5c6020c58b183fdd8dbe36921.tar.gz cubeb-d4b23d1e9b2857b5c6020c58b183fdd8dbe36921.zip |
fix a few warnings (#571)
Diffstat (limited to 'test/test_loopback.cpp')
-rw-r--r-- | test/test_loopback.cpp | 2 |
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); } |