1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
5 \page qtspatialaudio-index.html
6 \title Qt Spatial Audio
7 \brief The Qt Spatial Audio module provides APIs for modeling sound source
8 and their surrounds in 3D space
10 Qt Spatial Audio is an add-on module that provides a rich set of QML types
11 and C++ classes to implement sound fields in 3D space. It contains an easy to use
12 API for positing a listener in space, adding localized sound sources around the
13 listener and emulating virtual rooms with reverb and reflections.
15 \section1 Getting started
17 If you are new to Qt Spatial Audio, the QML types can be
18 \l{qtqml import syntax}{imported} into an application using the following
19 statement in your \c {.qml} file.
22 import QtQuick3D.SpatialAudio
25 To link against the C++ libraries, add the following to your project's
26 \c CMakeLists.txt file. Substitute \c my_project with the name of your
30 find_package(Qt6 REQUIRED COMPONENTS SpatialAudio)
31 target_link_libraries(my_project PRIVATE Qt6::SpatialAudio)
34 \l{Spatial Audio Overview} provides a more detailed description about how
35 to use the different classes listed below.
39 The following table outlines some important QML types.
47 \li The engine doing the processing of the audio scene
50 \li A sound source located in 3D space.
53 \li A location independent stereo sound track.
56 \li Defines a room that generates audio reverb and reflections.
61 The following table outlines some important C++ Classes
69 \li The engine doing the processing of the audio scene
71 \li \l {QSpatialSound}
72 \li A sound source located in 3D space.
74 \li \l {QAmbientSound}
75 \li A location independent stereo sound track.
78 \li Defines a room that generates audio reverb and reflections.
81 \section1 Licenses and Attributions
83 The Qt Spatial Audio module is available under commercial licenses from
85 In addition, it is available under free software licenses. These free software
87 \l{GNU Lesser General Public License, version 3}, or
88 the \l{GNU General Public License, version 3}.
89 See \l{Qt Licensing} for further details.
91 Note that Qt Spatial Audio is not available under the \l{GNU General Public License, version 2}.
93 Furthermore, Qt Spatial Audio in Qt \QtVersion contains third party
94 modules under the following permissive licenses:
96 \generatelist{groupsbymodule attributions-qtspatialaudio}
98 \section1 Reference and Examples
100 \li \l{Qt Spatial Audio QML Types}{QML Types}
101 \li \l{Qt Spatial Audio C++ Classes}{C++ Classes}
102 \li \l{Qt Spatial Audio Examples}{Examples}