aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
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 /tools
parent0adc5ea9650acdbe5e1cc78ee0d0398400350c83 (diff)
downloadcubeb-d4b23d1e9b2857b5c6020c58b183fdd8dbe36921.tar.gz
cubeb-d4b23d1e9b2857b5c6020c58b183fdd8dbe36921.zip
fix a few warnings (#571)
Diffstat (limited to 'tools')
-rw-r--r--tools/cubeb-test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/cubeb-test.cpp b/tools/cubeb-test.cpp
index 2edd9f4..e5d975f 100644
--- a/tools/cubeb-test.cpp
+++ b/tools/cubeb-test.cpp
@@ -265,7 +265,7 @@ long cubeb_client::user_data_cb(cubeb_stream* stm, void* user,
const float* in = static_cast<const float*>(input_buffer);
float* out = static_cast<float*>(output_buffer);
if (_latency_testing) {
- for (uint32_t i = 0; i < nframes; i++) {
+ for (int32_t i = 0; i < nframes; i++) {
// Impulses every second, mixed with the input signal fed back at half
// gain, to measure the input-to-output latency via feedback.
uint32_t clock = ((_total_frames + i) % _rate);
@@ -280,7 +280,7 @@ long cubeb_client::user_data_cb(cubeb_stream* stm, void* user,
}
}
} else {
- for (uint32_t i = 0; i < nframes; i++) {
+ for (int32_t i = 0; i < nframes; i++) {
for (uint32_t j = 0; j < _channels; j++) {
out[i * _channels + j] = in[i];
}