Граф коммитов

16 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot 687b1e3446 Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
Paul Adenot 8b4721e51e Non functional change: fix unified compilation issue -- make callbacks static 2023-11-10 15:31:45 +01:00
Paul Adenot 88900545d4 Only run test_overload.cpp when using the WASAPI backend 2023-04-26 14:28:46 +02:00
Paul Adenot b8765e132d Inline values for stream params in test_logging.cpp, undef defines in test to avoid breaking unified builds when building tests in Firefox. 2022-12-02 15:40:20 +01:00
Alex Chronopoulos 5066cfcf42
tests: check correctly the audio buffer values range (BMO 1484541). (#461)
* tests: check correctly the audio buffer values range (BMO 1484541).

* tests: create a comfortable way to enable logs in tests

* duplex test: check audio range correctly and change the input channel to stereo to avoid AD mixer (BMO 1484541).

* test_duplex: Revert back input channel to mono
2018-10-18 16:57:01 +02:00
Bryce Van Dyk 4c18a84a45 Explicitly init stream_params.prefs in tests.
Also update the example code comment in cubbeb.h to reflect new param usage.
2018-01-23 08:50:28 +13:00
Dan Glastonbury d16db3b692 Change cubeb_get_min_latency to take params via pointer.
To be consistent with cubeb_stream_init, take the cubeb_stream_params
parameter via pointer instead of by value.  This is a public API
change only---Backends are handed params by value via ops table.
2017-06-24 00:51:53 +12:00
Dan Glastonbury c9641ca143 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.
2017-05-23 15:32:12 +12:00
Michael Maltese 72a9685857 tests: Remove code preferring floats on Win32
The WASAPI backend supports S16, same as the other backends.
2017-04-13 09:22:09 +12:00
Chun-Min Chang 7d68ec269d Replace cubeb_cleaner and cubeb_stream_cleaner by unique_ptr 2017-04-06 20:14:00 +12:00
Chun-Min Chang 2612c2075b Using RAII helpers for cubeb context and stream but leaving test_sanity for explicit flow control 2017-04-06 20:14:00 +12:00
Chun-Min Chang 91caeafda7 Replace printf by fprintf with stderr 2017-03-27 02:45:33 -07:00
Chun-Min Chang 8123c42390 Replace assert by gtest assertion 2017-03-27 02:45:33 -07:00
Matthew Gregan 11a7c6d4a2 test_overload_callback: Use the standard STREAM_FORMAT definition. 2017-03-15 10:33:22 +13:00
Damien Zammit 4c39aae8d3 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 <damien@zamaudio.com>
2017-03-13 11:00:12 +13:00
Paul Adenot 7b082450d2 Make `stop_and_join_render_thread` more idempotent, and add a test.
This fixes Gecko bug #1345147.
2017-03-09 04:42:06 -08:00