aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_sanity.cpp
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2017-08-07 22:45:24 +1200
committerGitHub <[email protected]>2017-08-07 22:45:24 +1200
commitd59010398cee559349ba8f8363a7250b5279aa69 (patch)
tree163b1ad28b1c25b74fa9e5d93ca2cdcd7dfed168 /test/test_sanity.cpp
parent0e10388459fe1e252c075e4a1fab7a9363dc13a1 (diff)
downloadcubeb-d59010398cee559349ba8f8363a7250b5279aa69.tar.gz
cubeb-d59010398cee559349ba8f8363a7250b5279aa69.zip
Remove unused B2G-only stream_type field from cubeb_stream_params. (#347)
Diffstat (limited to 'test/test_sanity.cpp')
-rw-r--r--test/test_sanity.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/test_sanity.cpp b/test/test_sanity.cpp
index f7f4567..b630c43 100644
--- a/test/test_sanity.cpp
+++ b/test/test_sanity.cpp
@@ -125,9 +125,6 @@ TEST(cubeb, context_variables)
params.format = STREAM_FORMAT;
params.rate = STREAM_RATE;
params.layout = STREAM_LAYOUT;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
r = cubeb_get_min_latency(ctx, &params, &value);
ASSERT_TRUE(r == CUBEB_OK || r == CUBEB_ERROR_NOT_SUPPORTED);
if (r == CUBEB_OK) {
@@ -163,9 +160,6 @@ TEST(cubeb, init_destroy_stream)
params.rate = STREAM_RATE;
params.channels = STREAM_CHANNELS;
params.layout = STREAM_LAYOUT;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
r = cubeb_stream_init(ctx, &stream, "test", NULL, NULL, NULL, &params, STREAM_LATENCY,
test_data_callback, test_state_callback, &dummy);
@@ -192,9 +186,6 @@ TEST(cubeb, init_destroy_multiple_streams)
params.rate = STREAM_RATE;
params.channels = STREAM_CHANNELS;
params.layout = STREAM_LAYOUT;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
for (i = 0; i < ARRAY_LENGTH(stream); ++i) {
r = cubeb_stream_init(ctx, &stream[i], "test", NULL, NULL, NULL, &params, STREAM_LATENCY,
@@ -225,9 +216,6 @@ TEST(cubeb, configure_stream)
params.rate = STREAM_RATE;
params.channels = 2; // panning
params.layout = CUBEB_LAYOUT_STEREO;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
r = cubeb_stream_init(ctx, &stream, "test", NULL, NULL, NULL, &params, STREAM_LATENCY,
test_data_callback, test_state_callback, &dummy);
@@ -259,9 +247,6 @@ TEST(cubeb, configure_stream_undefined_layout)
params.rate = STREAM_RATE;
params.channels = 2; // panning
params.layout = CUBEB_LAYOUT_UNDEFINED;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
r = cubeb_stream_init(ctx, &stream, "test", NULL, NULL, NULL, &params, STREAM_LATENCY,
test_data_callback, test_state_callback, &dummy);
@@ -297,9 +282,6 @@ test_init_start_stop_destroy_multiple_streams(int early, int delay_ms)
params.rate = STREAM_RATE;
params.channels = STREAM_CHANNELS;
params.layout = STREAM_LAYOUT;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
for (i = 0; i < ARRAY_LENGTH(stream); ++i) {
r = cubeb_stream_init(ctx, &stream[i], "test", NULL, NULL, NULL, &params, STREAM_LATENCY,
@@ -384,9 +366,6 @@ TEST(cubeb, init_destroy_multiple_contexts_and_streams)
params.rate = STREAM_RATE;
params.channels = STREAM_CHANNELS;
params.layout = STREAM_LAYOUT;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
for (i = 0; i < ARRAY_LENGTH(ctx); ++i) {
r = common_init(&ctx[i], "test_sanity");
@@ -425,9 +404,6 @@ TEST(cubeb, basic_stream_operations)
params.rate = STREAM_RATE;
params.channels = STREAM_CHANNELS;
params.layout = STREAM_LAYOUT;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
r = cubeb_stream_init(ctx, &stream, "test", NULL, NULL, NULL, &params, STREAM_LATENCY,
test_data_callback, test_state_callback, &dummy);
@@ -476,9 +452,6 @@ TEST(cubeb, stream_position)
params.rate = STREAM_RATE;
params.channels = STREAM_CHANNELS;
params.layout = STREAM_LAYOUT;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
r = cubeb_stream_init(ctx, &stream, "test", NULL, NULL, NULL, &params, STREAM_LATENCY,
test_data_callback, test_state_callback, &dummy);
@@ -612,9 +585,6 @@ TEST(cubeb, drain)
params.rate = STREAM_RATE;
params.channels = STREAM_CHANNELS;
params.layout = STREAM_LAYOUT;
-#if defined(__ANDROID__)
- params.stream_type = CUBEB_STREAM_TYPE_MUSIC;
-#endif
r = cubeb_stream_init(ctx, &stream, "test", NULL, NULL, NULL, &params, STREAM_LATENCY,
test_drain_data_callback, test_drain_state_callback, &dummy);