aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_tone.c
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2012-06-06 15:33:12 +1200
committerMatthew Gregan <[email protected]>2012-06-06 15:33:12 +1200
commit582601f0fcebdf2d61cb636d935f3ba71a3a95e7 (patch)
tree1077ca928e369d2f548197a9b62e6fe660078884 /test/test_tone.c
parent21d9678eb9755761f7a9d26253189b926258de7c (diff)
downloadcubeb-582601f0fcebdf2d61cb636d935f3ba71a3a95e7.tar.gz
cubeb-582601f0fcebdf2d61cb636d935f3ba71a3a95e7.zip
Fix tests after changing state callback signature.
Diffstat (limited to 'test/test_tone.c')
-rw-r--r--test/test_tone.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_tone.c b/test/test_tone.c
index 5eebe7c..083abe4 100644
--- a/test/test_tone.c
+++ b/test/test_tone.c
@@ -49,12 +49,12 @@ long data_cb(cubeb_stream *stream, void *user, void *buffer, long nframes)
return nframes;
}
-int state_cb(cubeb_stream *stream, void *user, cubeb_state state)
+void state_cb(cubeb_stream *stream, void *user, cubeb_state state)
{
struct cb_user_data *u = (struct cb_user_data *)user;
if (stream == NULL || u == NULL)
- return CUBEB_ERROR;
+ return;
switch (state) {
case CUBEB_STATE_STARTED:
@@ -67,7 +67,7 @@ int state_cb(cubeb_stream *stream, void *user, cubeb_state state)
printf("unknown stream state %d\n", state);
}
- return CUBEB_OK;
+ return;
}
int main(int argc, char *argv[])