diff options
author | Matthew Gregan <[email protected]> | 2012-06-02 13:50:40 +1200 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2012-06-02 13:50:40 +1200 |
commit | 491b026766cb7488b36b65b916bf80c4eaf2e476 (patch) | |
tree | 1861850a26715809495e2ebfdfed525c909e4cb0 | |
parent | 6a6ed2607e3c457768659495532c58480df1e40d (diff) | |
download | cubeb-491b026766cb7488b36b65b916bf80c4eaf2e476.tar.gz cubeb-491b026766cb7488b36b65b916bf80c4eaf2e476.zip |
Remove return type from state callback as it was never intended to support one.
-rw-r--r-- | include/cubeb/cubeb.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h index 1939bde..32e0b4d 100644 --- a/include/cubeb/cubeb.h +++ b/include/cubeb/cubeb.h @@ -40,8 +40,8 @@ extern "C" { cubeb_stream_start(stm); for (;;) { - cubeb_get_time(stm, &ts); - printf("time=%lu\n", ts); + cubeb_stream_get_position(stm, &ts); + printf("time=%llu\n", ts); sleep(1); } cubeb_stream_stop(stm); @@ -64,10 +64,9 @@ extern "C" { @endcode @code - int state_cb(cubeb_stream * stm, void * user, cubeb_state state) + void state_cb(cubeb_stream * stm, void * user, cubeb_state state) { printf("state=%d\n", state); - return CUBEB_OK; } @endcode */ @@ -141,12 +140,10 @@ typedef long (* cubeb_data_callback)(cubeb_stream * stream, /** User supplied state callback. @param stream @param user_ptr - @param state - @retval CUBEB_OK - @retval CUBEB_ERROR */ -typedef int (* cubeb_state_callback)(cubeb_stream * stream, - void * user_ptr, - cubeb_state state); + @param state */ +typedef void (* cubeb_state_callback)(cubeb_stream * stream, + void * user_ptr, + cubeb_state state); /** Initialize an application context. This will perform any library or application scoped initialization. |