summaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* Change license for tools utils filesLucie Gérard2024-04-042-2/+2
| | | | | | | | | | | | According to QUIP-18 [1], all tools and utils files should be LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: Ib0cd8399a10fc9bd2e058df61b314171dd31244f Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Implement utility for checking and dumping audio config on macOSArtem Dyomin2022-12-224-0/+555
| | | | | | | | | | | | | | | | | | | | | | | | | | What is the utility able to do: - Enquires a vast set of audio devices configurations via AudioObjectGetPropertyData. - dumps results. - check the configuration many times in order to check if it's stable. Why do we need it: We have bugs with QtMM on macOS with audio input/output that are not reproducible with development environments. Pretty often such bugs have smth to do with specific audio devices on the bug reporter's side, and it's unclear what AudioObjectGetPropertyData returns in these cases. When I was investigating previous bugs, I attached such a code to the ticket so that bug reporters could provide more info. In light of the above, it's reasonable to have such a utility in the qt repo. Having it now in a single file could simplify its compilation and run by customers (just one command in README). Pick-to: 6.5 6.4 Task-number: QTBUG-108176 Change-Id: I3560353c78a0852a426f25b3487ab0a93e39c03f Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Lars Knoll <lars@knoll.priv.no>
* Use SPDX license identifiersLucie Gérard2022-06-241-64/+3
| | | | | | | | | | | 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>
* Split spatial audio out into a lib of its ownLars Knoll2022-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | Move the classes from src/multimedia/spatial into its own QtSpatialAudio library. This is required to keep Qt Multimedia compatible with the requirements from the KDE Free Qt Foundation agreement, as well as to keep license compatibility with existing applications licensed under GPLv2 that are using Qt Multimedia. Moving the classes into a module of their own required a few additional changes to ensure we generate proper documentation for the new spatial audio module. To align the API between C++ and QML, the QML import was also renamed to QtQuick3D.SpatialAudio. Pick-to: 6.4 Change-Id: Ia3f9ac5e1edac4b1e07d3302d7a229ada5bdc038 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* Improve volume matching between Surround and Stereo modesLars Knoll2022-05-311-1/+3
| | | | | | | | | | | Stereo mode was quite a bit louder that Surround mode when sent to the same speaker array. This raises the volume of the surround decoder matrices by a factor of 1.5 which seems to approximately account for the volume difference between the modes. Change-Id: I6eb2db535449e17cf6d7c5e2c63cb60de3f34369 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* Fix the data to decode ambisonic to surround speaker arraysLars Knoll2022-05-311-30/+22
| | | | | | | | | | | | | | | | | Use the correct channel order and normalization of the ambisonic channels. Resonance Audio expects Ambix compatible ordering (ie. ACN channel order) and normalization (SN3D). Specify that we want that ordering in the script generating the speaker data and normalize the factors correctly to SN3D. Add hand coded handling for Mono, Stereo, 2Dot1, 3Dot0 and 3Dot1 speaker configurations as those do not cover the area behind the listener and thus don't really qualify as a surround configuration. Change-Id: I905ddaa81938df918a460a7dea0526444836cdff Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* Add decoder matrices to convert ambisonic data to various speaker configurationsLars Knoll2022-05-111-0/+232
Resonance Audio uses ambisonic data internally and has builtin support to convert the spatial data to binaural headphone signals. It does however not support converting the data to surround speaker configurations. This adt_generat_qt.m file is a matlab/octave script that generates mapping data from ambisonic sound data to various loudspeaker configurations. This uses the Ambisonic Decoder Toolbox to generate the data. The new ambisonic decoder adds internal API to convert ambisonic sound data into various loudspeaker configurations. This gives us decent support for spatial audio not only on headphones, but also on various surround systems. Change-Id: I67c43e8f26904e39b96e5667971b72f283a0d86c Reviewed-by: Lars Knoll <lars.knoll@qt.io>