aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorRalph Giles <[email protected]>2011-09-19 17:06:06 -0700
committerRalph Giles <[email protected]>2011-09-19 17:06:06 -0700
commitadab8acb9cdc189302b0325ec31d4a2a83404f1a (patch)
treee84a91cb27d4f696aae69229cd2de906bdfd1c86 /include
parente86128d272599b66c2084ea278c9ae0a6405c8ba (diff)
downloadcubeb-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.h6
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) {