diff --git a/test/test_audio.cpp b/test/test_audio.cpp index 1bd18b3..4943223 100644 --- a/test/test_audio.cpp +++ b/test/test_audio.cpp @@ -73,7 +73,7 @@ void synth_run_float(synth_state* synth, float* audiobuffer, long nframes) } } -long data_cb_float(cubeb_stream *stream, void *user, const void * inputbuffer, void *outputbuffer, long nframes) +long data_cb_float(cubeb_stream * /*stream*/, void * user, const void * /*inputbuffer*/, void * outputbuffer, long nframes) { synth_state *synth = (synth_state *)user; synth_run_float(synth, (float*)outputbuffer, nframes); @@ -92,14 +92,14 @@ void synth_run_16bit(synth_state* synth, short* audiobuffer, long nframes) } } -long data_cb_short(cubeb_stream *stream, void *user, const void * inputbuffer, void *outputbuffer, long nframes) +long data_cb_short(cubeb_stream * /*stream*/, void * user, const void * /*inputbuffer*/, void * outputbuffer, long nframes) { synth_state *synth = (synth_state *)user; synth_run_16bit(synth, (short*)outputbuffer, nframes); return nframes; } -void state_cb(cubeb_stream *stream, void *user, cubeb_state state) +void state_cb(cubeb_stream * /*stream*/, void * /*user*/, cubeb_state /*state*/) { } @@ -280,7 +280,7 @@ void run_channel_rate_test() } -int main(int argc, char *argv[]) +int main(int /*argc*/, char * /*argv*/[]) { #ifdef CUBEB_GECKO_BUILD ScopedXPCOM xpcom("test_audio"); diff --git a/test/test_duplex.cpp b/test/test_duplex.cpp index 85fbd3d..c5d02d7 100644 --- a/test/test_duplex.cpp +++ b/test/test_duplex.cpp @@ -38,7 +38,7 @@ struct user_state -long data_cb(cubeb_stream *stream, void *user, const void * inputbuffer, void *outputbuffer, long nframes) +long data_cb(cubeb_stream * stream, void * user, const void * inputbuffer, void * outputbuffer, long nframes) { user_state * u = reinterpret_cast(user); #if (defined(_WIN32) || defined(__WIN32__)) @@ -70,7 +70,7 @@ long data_cb(cubeb_stream *stream, void *user, const void * inputbuffer, void *o return nframes; } -void state_cb(cubeb_stream *stream, void *user, cubeb_state state) +void state_cb(cubeb_stream * stream, void * /*user*/, cubeb_state state) { if (stream == NULL) return; @@ -89,7 +89,7 @@ void state_cb(cubeb_stream *stream, void *user, cubeb_state state) return; } -int main(int argc, char *argv[]) +int main(int /*argc*/, char * /*argv*/[]) { #ifdef CUBEB_GECKO_BUILD ScopedXPCOM xpcom("test_duplex"); diff --git a/test/test_latency.cpp b/test/test_latency.cpp index 558ef95..0586b1a 100644 --- a/test/test_latency.cpp +++ b/test/test_latency.cpp @@ -11,7 +11,7 @@ #define LOG(msg) fprintf(stderr, "%s\n", msg); -int main(int argc, char * argv[]) +int main(int /*argc*/, char * /*argv*/[]) { #ifdef CUBEB_GECKO_BUILD ScopedXPCOM xpcom("test_latency"); diff --git a/test/test_record.cpp b/test/test_record.cpp index 5dbfb61..681e164 100644 --- a/test/test_record.cpp +++ b/test/test_record.cpp @@ -33,7 +33,7 @@ struct user_state bool seen_noise; }; -long data_cb(cubeb_stream *stream, void *user, const void * inputbuffer, void *outputbuffer, long nframes) +long data_cb(cubeb_stream * stream, void * user, const void * inputbuffer, void * outputbuffer, long nframes) { user_state * u = reinterpret_cast(user); #if STREAM_FORMAT != CUBEB_SAMPLE_FLOAT32LE @@ -58,7 +58,7 @@ long data_cb(cubeb_stream *stream, void *user, const void * inputbuffer, void *o return nframes; } -void state_cb(cubeb_stream *stream, void *user, cubeb_state state) +void state_cb(cubeb_stream * stream, void * /*user*/, cubeb_state state) { if (stream == NULL) return; @@ -77,7 +77,7 @@ void state_cb(cubeb_stream *stream, void *user, cubeb_state state) return; } -int main(int argc, char *argv[]) +int main(int /*argc*/, char * /*argv*/[]) { #ifdef CUBEB_GECKO_BUILD ScopedXPCOM xpcom("test_record"); diff --git a/test/test_resampler.cpp b/test/test_resampler.cpp index fc3ecf8..00b256d 100644 --- a/test/test_resampler.cpp +++ b/test/test_resampler.cpp @@ -283,7 +283,7 @@ uint32_t fill_with_sine(float * buf, uint32_t rate, uint32_t channels, return initial_phase; } -long data_cb(cubeb_stream * stm, void * user_ptr, +long data_cb(cubeb_stream * /*stm*/, void * user_ptr, const void * input_buffer, void * output_buffer, long frame_count) { osc_state * state = reinterpret_cast(user_ptr); @@ -464,7 +464,7 @@ void test_delay_line() } } -long test_output_only_noop_data_cb(cubeb_stream * stm, void * user_ptr, +long test_output_only_noop_data_cb(cubeb_stream * /*stm*/, void * /*user_ptr*/, const void * input_buffer, void * output_buffer, long frame_count) { @@ -500,7 +500,7 @@ void test_output_only_noop() cubeb_resampler_destroy(resampler); } -long test_drain_data_cb(cubeb_stream * stm, void * user_ptr, +long test_drain_data_cb(cubeb_stream * /*stm*/, void * /*user_ptr*/, const void * input_buffer, void * output_buffer, long frame_count) { diff --git a/test/test_sanity.cpp b/test/test_sanity.cpp index 36f903f..de4b6a8 100644 --- a/test/test_sanity.cpp +++ b/test/test_sanity.cpp @@ -36,7 +36,7 @@ static uint64_t total_frames_written; static int delay_callback; static long -test_data_callback(cubeb_stream * stm, void * user_ptr, const void * inputbuffer, void * outputbuffer, long nframes) +test_data_callback(cubeb_stream * stm, void * user_ptr, const void * /*inputbuffer*/, void * outputbuffer, long nframes) { assert(stm && user_ptr == &dummy && outputbuffer && nframes > 0); #if (defined(_WIN32) || defined(__WIN32__)) @@ -53,7 +53,7 @@ test_data_callback(cubeb_stream * stm, void * user_ptr, const void * inputbuffer } void -test_state_callback(cubeb_stream * stm, void * user_ptr, cubeb_state state) +test_state_callback(cubeb_stream * /*stm*/, void * /*user_ptr*/, cubeb_state /*state*/) { } @@ -494,7 +494,7 @@ static int do_drain; static int got_drain; static long -test_drain_data_callback(cubeb_stream * stm, void * user_ptr, const void * inputbuffer, void * outputbuffer, long nframes) +test_drain_data_callback(cubeb_stream * stm, void * user_ptr, const void * /*inputbuffer*/, void * outputbuffer, long nframes) { assert(stm && user_ptr == &dummy && outputbuffer && nframes > 0); if (do_drain == 1) { @@ -513,7 +513,7 @@ test_drain_data_callback(cubeb_stream * stm, void * user_ptr, const void * input } void -test_drain_state_callback(cubeb_stream * stm, void * user_ptr, cubeb_state state) +test_drain_state_callback(cubeb_stream * /*stm*/, void * /*user_ptr*/, cubeb_state state) { if (state == CUBEB_STATE_DRAINED) { assert(!got_drain); @@ -608,7 +608,7 @@ int is_windows_7() } int -main(int argc, char * argv[]) +main(int /*argc*/, char * /*argv*/[]) { #ifdef CUBEB_GECKO_BUILD ScopedXPCOM xpcom("test_sanity"); diff --git a/test/test_tone.cpp b/test/test_tone.cpp index ae5ac80..3c6e0ec 100644 --- a/test/test_tone.cpp +++ b/test/test_tone.cpp @@ -34,7 +34,7 @@ struct cb_user_data { long position; }; -long data_cb(cubeb_stream *stream, void *user, const void* inputbuffer, void *outputbuffer, long nframes) +long data_cb(cubeb_stream *stream, void *user, const void* /*inputbuffer*/, void *outputbuffer, long nframes) { struct cb_user_data *u = (struct cb_user_data *)user; #if (defined(_WIN32) || defined(__WIN32__)) @@ -98,7 +98,7 @@ void state_cb(cubeb_stream *stream, void *user, cubeb_state state) return; } -int main(int argc, char *argv[]) +int main(int /*argc*/, char * /*argv*/[]) { #ifdef CUBEB_GECKO_BUILD ScopedXPCOM xpcom("test_tone");