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 /test | |
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 'test')
-rw-r--r-- | test/test_duplex.cpp | 2 | ||||
-rw-r--r-- | test/test_latency.cpp | 2 | ||||
-rw-r--r-- | test/test_overload_callback.cpp | 2 | ||||
-rw-r--r-- | test/test_sanity.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/test/test_duplex.cpp b/test/test_duplex.cpp index 6237c1a..427b503 100644 --- a/test/test_duplex.cpp +++ b/test/test_duplex.cpp @@ -106,7 +106,7 @@ TEST(cubeb, duplex) output_params.channels = 2; output_params.layout = CUBEB_LAYOUT_STEREO; - r = cubeb_get_min_latency(ctx, output_params, &latency_frames); + r = cubeb_get_min_latency(ctx, &output_params, &latency_frames); ASSERT_EQ(r, CUBEB_OK) << "Could not get minimal latency"; r = cubeb_stream_init(ctx, &stream, "Cubeb duplex", diff --git a/test/test_latency.cpp b/test/test_latency.cpp index e01b26f..d71a137 100644 --- a/test/test_latency.cpp +++ b/test/test_latency.cpp @@ -39,7 +39,7 @@ TEST(cubeb, latency) , CUBEB_STREAM_TYPE_MUSIC #endif }; - r = cubeb_get_min_latency(ctx, params, &latency_frames); + r = cubeb_get_min_latency(ctx, ¶ms, &latency_frames); ASSERT_TRUE(r == CUBEB_OK || r == CUBEB_ERROR_NOT_SUPPORTED); if (r == CUBEB_OK) { ASSERT_GT(latency_frames, 0u); diff --git a/test/test_overload_callback.cpp b/test/test_overload_callback.cpp index 92284d3..73982ef 100644 --- a/test/test_overload_callback.cpp +++ b/test/test_overload_callback.cpp @@ -69,7 +69,7 @@ TEST(cubeb, overload_callback) output_params.channels = 2; output_params.layout = CUBEB_LAYOUT_STEREO; - r = cubeb_get_min_latency(ctx, output_params, &latency_frames); + r = cubeb_get_min_latency(ctx, &output_params, &latency_frames); ASSERT_EQ(r, CUBEB_OK); r = cubeb_stream_init(ctx, &stream, "Cubeb", diff --git a/test/test_sanity.cpp b/test/test_sanity.cpp index 9838106..753da66 100644 --- a/test/test_sanity.cpp +++ b/test/test_sanity.cpp @@ -128,7 +128,7 @@ TEST(cubeb, context_variables) #if defined(__ANDROID__) params.stream_type = CUBEB_STREAM_TYPE_MUSIC; #endif - r = cubeb_get_min_latency(ctx, params, &value); + r = cubeb_get_min_latency(ctx, ¶ms, &value); ASSERT_TRUE(r == CUBEB_OK || r == CUBEB_ERROR_NOT_SUPPORTED); if (r == CUBEB_OK) { ASSERT_TRUE(value > 0); |