diff options
author | Ralph Giles <[email protected]> | 2011-09-19 17:06:06 -0700 |
---|---|---|
committer | Ralph Giles <[email protected]> | 2011-09-19 17:06:06 -0700 |
commit | adab8acb9cdc189302b0325ec31d4a2a83404f1a (patch) | |
tree | e84a91cb27d4f696aae69229cd2de906bdfd1c86 /include | |
parent | e86128d272599b66c2084ea278c9ae0a6405c8ba (diff) | |
download | cubeb-adab8acb9cdc189302b0325ec31d4a2a83404f1a.tar.gz cubeb-adab8acb9cdc189302b0325ec31d4a2a83404f1a.zip |
Update the example code to match the current API headers.
Diffstat (limited to 'include')
-rw-r--r-- | include/cubeb/cubeb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h index 2dfdde1..c94019e 100644 --- a/include/cubeb/cubeb.h +++ b/include/cubeb/cubeb.h @@ -36,20 +36,20 @@ extern "C" { cubeb_stream_init(app_ctx, &stm, "Example Stream 1", params, 250, data_cb, state_cb, NULL); - cubeb_start(stm); + cubeb_stream_start(stm); for (;;) { cubeb_get_time(stm, &ts); printf("time=%lu\n", ts); sleep(1); } - cubeb_stop(stm); + cubeb_stream_stop(stm); cubeb_stream_destroy(stm); cubeb_destroy(app_ctx); @endcode @code - int data_cb(cubeb_stream * stm, void * user, void * buffer, size_t nframes) + long data_cb(cubeb_stream * stm, void * user, void * buffer, long nframes) { short * buf = buffer; for (i = 0; i < nframes; ++i) { |