diff options
author | Dan Glastonbury <[email protected]> | 2017-05-23 12:35:29 +1000 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2017-05-23 15:32:12 +1200 |
commit | c9641ca143e3263779137f08c58ef43ab0a7c75d (patch) | |
tree | 3f488931127f99ad56e0c0c8c0839821a2d7af97 /test/test_overload_callback.cpp | |
parent | 0c74372fd5e24d3ed0316bbb656a5f5995fc25b0 (diff) | |
download | cubeb-c9641ca143e3263779137f08c58ef43ab0a7c75d.tar.gz cubeb-c9641ca143e3263779137f08c58ef43ab0a7c75d.zip |
Add backend specification support to common.h
Set CUBEB_BACKEND env var to the name of valid backend supported by
the current platform to prefer that backend over the default choice.
If CUBEB_BACKEND is not valid, backend selection falls back to the
standard behaviour.
A warning is printed to stderr if the chosen backend id doesn't match
the requested one.
Diffstat (limited to 'test/test_overload_callback.cpp')
-rw-r--r-- | test/test_overload_callback.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_overload_callback.cpp b/test/test_overload_callback.cpp index ff1410e..92284d3 100644 --- a/test/test_overload_callback.cpp +++ b/test/test_overload_callback.cpp @@ -58,7 +58,7 @@ TEST(cubeb, overload_callback) int r; uint32_t latency_frames = 0; - r = cubeb_init(&ctx, "Cubeb callback overload", NULL); + r = common_init(&ctx, "Cubeb callback overload"); ASSERT_EQ(r, CUBEB_OK); std::unique_ptr<cubeb, decltype(&cubeb_destroy)> |