summaryrefslogtreecommitdiffstats
path: root/src/multimediaquick3d
Commit message (Collapse)AuthorAgeFilesLines
* spatial audio: Use centimeters by defaultLars Knoll2022-05-231-2/+4
| | | | | | | | | | | | | | | Qt Quick 3D uses a centimeters by default for positions and distances. Align our API with that choice. Add a distanceScale property to enable the user to choose a different scale. Store all our data internally in meters, to be aligned with the data expected by resonance audio and to make sure we don't mess up the existing configuration when the distance scale changes. Change-Id: Id06cb49bd152bfa7920c096c662ff103041261e0 Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
* Some smaller API fixes to QSpatialAudioSoundSourceLars Knoll2022-05-162-25/+29
| | | | | | | | Try to improve/clarify naming of properties. Change-Id: Idd610a95a196c127bfa0922f5a711ab2e483dcbf Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* API fixes for QSpatialAudioRoomLars Knoll2022-05-161-12/+12
| | | | | | | | Rename setWall() to setWallMaterial() for more clarity. Change-Id: I54dc7095e75bc520017fb394e552a87348d4cb8d Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Add overview and example docs for spatial audioLars Knoll2022-05-115-1/+6
| | | | | | | | Add a short description of the spatialaudio example and some overview docs for that part of the API. Change-Id: I7ee7b61c00f82f3bd4ca438e96b01a7c5e9889ff Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Add documentation for the QtQuick3D.SpatialAudio moduleLars Knoll2022-05-118-69/+477
| | | | | | | | | | | Used the C++ docs as a template. Also added a few missing methods and properties. Also cleaned up the docs for the C++ API and fixed the qdoc warnings there. Change-Id: Ie9ccd14a344b4d22c83f26abd64414fcaccccc9c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Add support for rooms to the spatial audio engineLars Knoll2022-05-113-0/+465
| | | | | | | | | | | | | | | | | | The new QSpatialAudioRoom class allows defining a room. If the listener is inside the room, the properties of that room will get enabled, giving us first order reflections and reverb. Multiple rooms can be defined and the engine will automatically update the room to be used when the listener position changes. If the listener is inside multiple rooms, the room with the smallest volume will get chosen. Updated the spatialaudio example to allow modifying some of the room properties for testing. Change-Id: I94ffe0a6b7e570c4ea77898e021d7fe042fb9b52 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Add some minimal documentation for the spatial audio classesLars Knoll2022-05-111-1/+1
| | | | | | | Rather minimal docs for the spatial audio C++ classes. Change-Id: I42d68b9ec571eb26f2388dbfcc156cba64f4a724 Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
* Add the Quick3D.SpatialAudio QML moduleLars Knoll2022-05-1112-0/+1009
Also this has been developed outside of Qt Multimedia so far, but it makes sense to add it here. This does however introduce an optional dependency of this module to qt quick3d. Change-Id: I357505a5832976917414acc07ca0480a635af176 Reviewed-by: Lars Knoll <lars.knoll@qt.io>