diff options
author | Dan Glastonbury <[email protected]> | 2017-06-23 17:26:09 +1000 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2017-06-24 00:51:53 +1200 |
commit | d16db3b6926ecfa8b1afff599dd40205d8eecc2b (patch) | |
tree | b5747bb111801d611f8d19d37f6276ec6075c5a8 /include | |
parent | 18153b9c799965b95cc411b2adbb93fefaed1cd2 (diff) | |
download | cubeb-d16db3b6926ecfa8b1afff599dd40205d8eecc2b.tar.gz cubeb-d16db3b6926ecfa8b1afff599dd40205d8eecc2b.zip |
Change cubeb_get_min_latency to take params via pointer.
To be consistent with cubeb_stream_init, take the cubeb_stream_params
parameter via pointer instead of by value. This is a public API
change only---Backends are handed params by value via ops table.
Diffstat (limited to 'include')
-rw-r--r-- | include/cubeb/cubeb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h index 02dee25..4d65229 100644 --- a/include/cubeb/cubeb.h +++ b/include/cubeb/cubeb.h @@ -37,7 +37,7 @@ extern "C" { int latency_frames; uint64_t ts; - rv = cubeb_get_min_latency(app_ctx, output_params, &latency_frames); + rv = cubeb_get_min_latency(app_ctx, &output_params, &latency_frames); if (rv != CUBEB_OK) { fprintf(stderr, "Could not get minimum latency"); return rv; @@ -455,7 +455,7 @@ CUBEB_EXPORT int cubeb_get_max_channel_count(cubeb * context, uint32_t * max_cha @retval CUBEB_ERROR_INVALID_PARAMETER @retval CUBEB_ERROR_NOT_SUPPORTED */ CUBEB_EXPORT int cubeb_get_min_latency(cubeb * context, - cubeb_stream_params params, + cubeb_stream_params * params, uint32_t * latency_frames); /** Get the preferred sample rate for this backend: this is hardware and |