aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_audio.cpp
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2016-08-23 13:20:54 +1200
committerMatthew Gregan <[email protected]>2016-08-23 13:20:54 +1200
commita1f417334b19216eb09f5a1cd4cb9deea0fd231e (patch)
tree74e036d68cf0203ae7d75e3ab18ea577c7643de7 /test/test_audio.cpp
parente954594a0de13e190768619d34d6fb106bbc8f53 (diff)
downloadcubeb-a1f417334b19216eb09f5a1cd4cb9deea0fd231e.tar.gz
cubeb-a1f417334b19216eb09f5a1cd4cb9deea0fd231e.zip
test: Fix unused parameter warnings.
Diffstat (limited to 'test/test_audio.cpp')
-rw-r--r--test/test_audio.cpp8
1 files changed, 4 insertions, 4 deletions
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");