diff options
author | Bryce Van Dyk <[email protected]> | 2018-01-22 11:13:00 -0500 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2018-01-23 08:50:28 +1300 |
commit | 4c18a84a4573a23a1c39ccf6c70f1a6c328cb110 (patch) | |
tree | 8841bfc7e42e2893abb67fa334ab3fabd306a1bb /include | |
parent | 3baab547a43696018fdb86c875c0e7c72e08add8 (diff) | |
download | cubeb-4c18a84a4573a23a1c39ccf6c70f1a6c328cb110.tar.gz cubeb-4c18a84a4573a23a1c39ccf6c70f1a6c328cb110.zip |
Explicitly init stream_params.prefs in tests.
Also update the example code comment in cubbeb.h to reflect new param usage.
Diffstat (limited to 'include')
-rw-r--r-- | include/cubeb/cubeb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h index a305aa3..64f3a8d 100644 --- a/include/cubeb/cubeb.h +++ b/include/cubeb/cubeb.h @@ -53,16 +53,18 @@ extern "C" { output_params.format = CUBEB_SAMPLE_FLOAT32NE; output_params.rate = rate; output_params.channels = 2; + output_params.prefs = CUBEB_STREAM_PREF_NONE; cubeb_stream_params input_params; input_params.format = CUBEB_SAMPLE_FLOAT32NE; input_params.rate = rate; input_params.channels = 1; + input_params.prefs = CUBEB_STREAM_PREF_NONE; cubeb_stream * stm; rv = cubeb_stream_init(app_ctx, &stm, "Example Stream 1", - NULL, input_params, - NULL, output_params, + NULL, &input_params, + NULL, &output_params, latency_frames, data_cb, state_cb, NULL); |