diff options
author | Matthew Gregan <[email protected]> | 2018-03-27 17:48:59 +1300 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2018-03-27 17:48:59 +1300 |
commit | 57b4d6b454ecf4d564dbf92c61ac091d0556935f (patch) | |
tree | 53fb88a1425c3303c7d04a8782888386eba0cb48 /test/test_loopback.cpp | |
parent | 7401fc25a9d87ed57d49648883e3e5658305c1cb (diff) | |
download | cubeb-57b4d6b454ecf4d564dbf92c61ac091d0556935f.tar.gz cubeb-57b4d6b454ecf4d564dbf92c61ac091d0556935f.zip |
Initialize cubeb_stream_params.prefs field in more tests to avoid random failures.
Diffstat (limited to 'test/test_loopback.cpp')
-rw-r--r-- | test/test_loopback.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_loopback.cpp b/test/test_loopback.cpp index 41624b7..260eb31 100644 --- a/test/test_loopback.cpp +++ b/test/test_loopback.cpp @@ -348,6 +348,7 @@ void run_loopback_separate_streams_test(bool is_float) output_params.rate = SAMPLE_FREQUENCY; output_params.channels = 1; output_params.layout = CUBEB_LAYOUT_MONO; + output_params.prefs = CUBEB_STREAM_PREF_NONE; std::unique_ptr<user_state_loopback> user_data(new user_state_loopback()); ASSERT_TRUE(!!user_data) << "Error allocating user data"; @@ -515,6 +516,7 @@ void run_loopback_device_selection_test(bool is_float) output_params.rate = SAMPLE_FREQUENCY; output_params.channels = 1; output_params.layout = CUBEB_LAYOUT_MONO; + output_params.prefs = CUBEB_STREAM_PREF_NONE; std::unique_ptr<user_state_loopback> user_data(new user_state_loopback()); ASSERT_TRUE(!!user_data) << "Error allocating user data"; |