aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_audio.cpp
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2019-08-21 17:34:40 +0200
committerMatthew Gregan <[email protected]>2019-08-22 10:11:25 +1200
commit8c3e32bd24933f82220b66c88c845c4b2bdf28e7 (patch)
tree9250ea5fbb481108fd765c8d611f4317cd104ce0 /test/test_audio.cpp
parent323ced80197a2b3441d28bb12a4e53d4c30e0221 (diff)
downloadcubeb-8c3e32bd24933f82220b66c88c845c4b2bdf28e7.tar.gz
cubeb-8c3e32bd24933f82220b66c88c845c4b2bdf28e7.zip
Remove panning API from cubeb
This is best done by the host application, and had very little implementation anyways.
Diffstat (limited to 'test/test_audio.cpp')
-rw-r--r--test/test_audio.cpp22
1 files changed, 5 insertions, 17 deletions
diff --git a/test/test_audio.cpp b/test/test_audio.cpp
index 98ba197..ea1b999 100644
--- a/test/test_audio.cpp
+++ b/test/test_audio.cpp
@@ -148,7 +148,7 @@ int run_test(int num_channels, int sampling_rate, int is_float)
return r;
}
-int run_panning_volume_test(int is_float)
+int run_volume_test(int is_float)
{
int r = CUBEB_OK;
@@ -203,29 +203,17 @@ int run_panning_volume_test(int is_float)
delay(100);
}
- fprintf(stderr, "Testing: panning\n");
- for(int i=-4;i <= 4; ++i)
- {
- fprintf(stderr, "Panning: %.2f\n", i/4.0f);
-
- cubeb_stream_set_panning(stream, i/4.0f);
- cubeb_stream_start(stream);
- delay(400);
- cubeb_stream_stop(stream);
- delay(100);
- }
-
return r;
}
-TEST(cubeb, run_panning_volume_test_short)
+TEST(cubeb, run_volume_test_short)
{
- ASSERT_EQ(run_panning_volume_test(0), CUBEB_OK);
+ ASSERT_EQ(run_volume_test(0), CUBEB_OK);
}
-TEST(cubeb, run_panning_volume_test_float)
+TEST(cubeb, run_volume_test_float)
{
- ASSERT_EQ(run_panning_volume_test(1), CUBEB_OK);
+ ASSERT_EQ(run_volume_test(1), CUBEB_OK);
}
TEST(cubeb, run_channel_rate_test)