diff options
author | Damien Zammit <[email protected]> | 2017-02-21 16:09:05 +1100 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2017-03-13 11:00:12 +1300 |
commit | 4c39aae8d31334dc46d3b69d9695eed790fac38b (patch) | |
tree | 711b285becb19f69053c82ed64a7deb6ad320570 /test/test_audio.cpp | |
parent | 7b082450d2b57a4f2c541cb69558ae28682163f2 (diff) | |
download | cubeb-4c39aae8d31334dc46d3b69d9695eed790fac38b.tar.gz cubeb-4c39aae8d31334dc46d3b69d9695eed790fac38b.zip |
cubeb-api: Give cubeb_init a third param, backend name
This allows forcing of a particular backend by name,
*if* it was compiled in, otherwise default list is tried
in default order as before.
Tests updated to reflect new api. (Gecko change required)
Using JACK backend:
100% tests passed, 0 tests failed out of 13
Total Test time (real) = 183.75 sec
Signed-off-by: Damien Zammit <[email protected]>
Diffstat (limited to 'test/test_audio.cpp')
-rw-r--r-- | test/test_audio.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_audio.cpp b/test/test_audio.cpp index 451e1e8..d8eb26d 100644 --- a/test/test_audio.cpp +++ b/test/test_audio.cpp @@ -119,7 +119,7 @@ int run_test(int num_channels, layout_info layout, int sampling_rate, int is_flo cubeb *ctx = NULL; - r = cubeb_init(&ctx, "Cubeb audio test: channels"); + r = cubeb_init(&ctx, "Cubeb audio test: channels", NULL); if (r != CUBEB_OK) { fprintf(stderr, "Error initializing cubeb library\n"); return r; @@ -168,7 +168,7 @@ int run_panning_volume_test(int is_float) cubeb *ctx = NULL; - r = cubeb_init(&ctx, "Cubeb audio test"); + r = cubeb_init(&ctx, "Cubeb audio test", NULL); if (r != CUBEB_OK) { fprintf(stderr, "Error initializing cubeb library\n"); return r; |