diff options
Diffstat (limited to 'test/test_loopback.cpp')
-rw-r--r-- | test/test_loopback.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_loopback.cpp b/test/test_loopback.cpp index ce29d6e..e2c8343 100644 --- a/test/test_loopback.cpp +++ b/test/test_loopback.cpp @@ -267,6 +267,12 @@ void run_loopback_duplex_test(bool is_float) std::unique_ptr<cubeb, decltype(&cubeb_destroy)> cleanup_cubeb_at_exit(ctx, cubeb_destroy); + /* This test needs an available input device, skip it if this host does not + * have one. */ + if (!can_run_audio_input_test(ctx)) { + return; + } + input_params.format = is_float ? CUBEB_SAMPLE_FLOAT32NE : CUBEB_SAMPLE_S16LE; input_params.rate = SAMPLE_FREQUENCY; input_params.channels = 1; |