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 \include cmake-find-package-multimedia.qdocinc {qml-import-intro} {Qt Spatial Audio} {import QtQuick3D.SpatialAudio}
18
19 To link against the C++ libraries, add the following to your project's
20 \c CMakeLists.txt file. Substitute \c mytarget with the name of your
21 project.
22
23 \include cmake-find-package-multimedia.qdocinc {find-and-link} {SpatialAudio} {PRIVATE} {Qt6::SpatialAudio}
24
25 \l{Spatial Audio Overview} provides a more detailed description about how
26 to use the different classes listed below.
27
28 \section1 QML Types
29
30 The following table outlines some important QML types.
31
32 \table
33 \header
34 \li Type
35 \li Description
36 \row
37 \li \l{AudioEngine}
38 \li The engine doing the processing of the audio scene
39 \row
40 \li \l {SpatialSound}
41 \li A sound source located in 3D space.
42 \row
43 \li \l {AmbientSound}
44 \li A location independent stereo sound track.
45 \row
46 \li \l {AudioRoom}
47 \li Defines a room that generates audio reverb and reflections.
48 \endtable
49
50 \section1 C++ Classes
51
52 The following table outlines some important C++ Classes
53
54 \table
55 \header
56 \li Class
57 \li Description
58 \row
59 \li \l{QAudioEngine}
60 \li The engine doing the processing of the audio scene
61 \row
62 \li \l {QSpatialSound}
63 \li A sound source located in 3D space.
64 \row
65 \li \l {QAmbientSound}
66 \li A location independent stereo sound track.
67 \row
68 \li \l {QAudioRoom}
69 \li Defines a room that generates audio reverb and reflections.
70 \endtable
71
72 \section1 Licenses and Attributions
73
74 The Qt Spatial Audio module is available under commercial licenses from
75 \l{The Qt Company}.
76 In addition, it is available under free software licenses. These free software
77 licenses are
78 \l{GNU Lesser General Public License, version 3}, or
79 the \l{GNU General Public License, version 3}.
80 See \l{Qt Licensing} for further details.
81
82 Note that Qt Spatial Audio is not available under the \l{GNU General Public License, version 2}.
83
84 Furthermore, Qt Spatial Audio in Qt \QtVersion contains third party
85 modules under the following permissive licenses:
86
87 \annotatedlist attributions-qtspatialaudio
88
89 \section1 Reference and Examples
90 \list
91 \li \l{Qt Spatial Audio QML Types}{QML Types}
92 \li \l{Qt Spatial Audio C++ Classes}{C++ Classes}
93 \li \l{Qt Spatial Audio Examples}{Examples}
94 \endlist
95*/