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 /test/test_devices.cpp | |
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 'test/test_devices.cpp')
-rw-r--r-- | test/test_devices.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_devices.cpp b/test/test_devices.cpp index 93c8692..10c14c3 100644 --- a/test/test_devices.cpp +++ b/test/test_devices.cpp @@ -190,6 +190,7 @@ TEST(cubeb, enumerate_devices) input_params.rate = output_params.rate = 48000; input_params.channels = output_params.channels = 1; input_params.layout = output_params.layout = CUBEB_LAYOUT_MONO; + input_params.prefs = output_params.prefs = CUBEB_STREAM_PREF_NONE; r = cubeb_stream_init(ctx, &stream, "Cubeb duplex", NULL, &input_params, NULL, &output_params, |