Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtspatialaudio-index.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2022 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
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
9
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.
14
15
\section1 Getting started
16
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.
20
21
\qml
22
import QtQuick3D.SpatialAudio
23
\endqml
24
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
27
project.
28
29
\code
30
find_package(Qt6 REQUIRED COMPONENTS SpatialAudio)
31
target_link_libraries(my_project PRIVATE Qt6::SpatialAudio)
32
\endcode
33
34
\l{Spatial Audio Overview} provides a more detailed description about how
35
to use the different classes listed below.
36
37
\section1 QML Types
38
39
The following table outlines some important QML types.
40
41
\table
42
\header
43
\li Type
44
\li Description
45
\row
46
\li \l{AudioEngine}
47
\li The engine doing the processing of the audio scene
48
\row
49
\li \l {SpatialSound}
50
\li A sound source located in 3D space.
51
\row
52
\li \l {AmbientSound}
53
\li A location independent stereo sound track.
54
\row
55
\li \l {AudioRoom}
56
\li Defines a room that generates audio reverb and reflections.
57
\endtable
58
59
\section1 C++ Classes
60
61
The following table outlines some important C++ Classes
62
63
\table
64
\header
65
\li Class
66
\li Description
67
\row
68
\li \l{QAudioEngine}
69
\li The engine doing the processing of the audio scene
70
\row
71
\li \l {QSpatialSound}
72
\li A sound source located in 3D space.
73
\row
74
\li \l {QAmbientSound}
75
\li A location independent stereo sound track.
76
\row
77
\li \l {QAudioRoom}
78
\li Defines a room that generates audio reverb and reflections.
79
\endtable
80
81
\section1 Licenses and Attributions
82
83
The Qt Spatial Audio module is available under commercial licenses from
84
\l{The Qt Company}.
85
In addition, it is available under free software licenses. These free software
86
licenses are
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.
90
91
Note that Qt Spatial Audio is not available under the \l{GNU General Public License, version 2}.
92
93
Furthermore, Qt Spatial Audio in Qt \QtVersion contains third party
94
modules under the following permissive licenses:
95
96
\annotatedlist attributions-qtspatialaudio
97
98
\section1 Reference and Examples
99
\list
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}
103
\endlist
104
*/
qtmultimedia
src
spatialaudio
doc
src
qtspatialaudio-index.qdoc
Generated on
for Qt by
1.14.0