summaryrefslogtreecommitdiff
path: root/src/resonance-audio
Commit message (Collapse)AuthorAgeFilesLines
* Use SPDX license identifiersLucie Gérard2022-06-242-72/+4
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: Ida08dfe6c84778656e942178c3d39042c9ef1ed2 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Spatial Audio: Implement support for room reverb in surround modeLars Knoll2022-05-313-7/+43
| | | | | | | | | | | | | | | | | | Resonance audio doesn't calculate any reverb when we ask for ambisonic output. The reason is that reverb is purely calculated using mono sources and a stereo output and is directly connected to the stereo mixer at the end of the pipeline. To fix this, gain access to private parts of resonance audio by compiling it with -Dprivate=public. That's ok, as we compile it purely as an internal library anyway. After that retrieve the audio data for the reverb component from the graph manager and add it at the end of the processing pipeline (after ambisonic decoding) to the different surround channels. Change-Id: Iaeeec8df7a963858b6ec0399948a55f89136964e Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* API cleanups for spatial/3D audioLars Knoll2022-05-242-2/+2
| | | | | | | | | Naming changes for the spatial audio API after reviewing it. Most of the names are now both shorter and better reflect the function they serve. Change-Id: I07347826f2fadf3d1705c597f35c168b19afe137 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* QNX: re-enable SIMD on QNXRafael Roquetto2022-05-171-5/+0
| | | | | | | | | | | | | | The issue that required this chunk of CMake code was already addressed in the same commit that introduced it, namely, the missing parentheses on early patchsets pertraining to: #elif !defined(PFFFT_SIMD_DISABLE) && \ (((defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM)) && defined(__ARM_NEON__)) || \ defined(_M_ARM64) || defined(__aarch64__) || defined(__ARM64__)) Change-Id: Ib1df1952dd2ea4f0943d3cded80bb2474c463622 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Hook up the ambisonic decoder to the spatial audio moduleLars Knoll2022-05-113-0/+108
| | | | | | | | This should give us proper 5.1/7.1 audio output for spatial audio. Partly untested, as I do not have a 5.1/7.1 system I can test with. Change-Id: Idad969641eb798607dc949e13908502b9afaf645 Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
* Fix compilation of resonance audio on our supported platformsLars Knoll2022-05-111-0/+5
| | | | | | | | | | | | | | Disable neon optimizations on QNX. I can't get those to compile on the platform. Looks like a bug in the arm_neon.h headers on QNX. Define M_PI and M_SQRT2 for pffft.c if they aren't defined. Fix the arm processor detection to be aligned with what we have in qprocessordetection.h Change-Id: I6f6ee2190ee6dd9c3a08d86961c39b47dd38f5cd Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Build resonance audio as a bundled static libraryLars Knoll2022-05-111-0/+211
Change-Id: I7d2dba0ccfbb6e9619601235405c43c36cae489b Reviewed-by: Lars Knoll <lars.knoll@qt.io>