tests: improve unit tests for QSpatialSound
We can test the player-based QSpatialSound playback, ensuring that
signals are mixed, as well as some simple audio tests, e.g. that volume
drops with distance, and the directivity has the expected results.
Adding stride ranges, a simple audio file generator and a QMockAudioSink
stub for testing.
Pick-to: 6.12
Change-Id: I0dfe14beddfe4324e22896bd52d49b17f0846ee2
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | 6d7629e7cc2d49152663df9914b0c0e6545c7fd7 |
| parent | 8b72797561a69d9677a6c23e58dcb5c0b80f48ac |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Wed, 16 Sep 2026 23:33:01 +0000 |
- M src/multimedia/audio/qrtaudioengine_p.h
- M src/multimedia/qmultimedia_ranges_p.h
- M src/multimediatestlib/CMakeLists.txt
- A src/multimediatestlib/audiogenerationutils.cpp
- M src/multimediatestlib/audiogenerationutils_p.h
- M src/spatialaudio/qaudioengine_withplayer_p.h
- M tests/auto/unit/CMakeLists.txt
- M tests/auto/unit/mockbackend/CMakeLists.txt
- M tests/auto/unit/mockbackend/qmockaudiodevices.cpp
- M tests/auto/unit/mockbackend/qmockaudiodevices.h
- A tests/auto/unit/mockbackend/qmockaudiosink_p.h
- M tests/auto/unit/multimedia/ranges/tst_qmultimedia_ranges.cpp
- A tests/auto/unit/spatialaudio/CMakeLists.txt
- A tests/auto/unit/spatialaudio/qaudioenginewithplayer/CMakeLists.txt
- A tests/auto/unit/spatialaudio/qaudioenginewithplayer/tst_qaudioenginewithplayer.cpp