Qt Spatial Audio

Qt Spatial Audio is an add-on module that provides a rich set of QML types and C++ classes to implement sound fields in 3D space. It contains an easy to use API for positing a listener in space, adding localized sound sources around the listener and emulating virtual rooms with reverb and reflections.

快速入門

If you are new to Qt Spatial Audio, the QML types can be imported 進應用程序使用以下語句在 .qml 文件。

import QtQuick3D.SpatialAudio
					

要鏈接到 C++ 庫,添加以下到工程 CMakeLists.txt 文件。代入 my_project 采用工程名稱。

find_package(Qt6 REQUIRED COMPONENTS SpatialAudio)
target_link_libraries(my_project PRIVATE Qt6::SpatialAudio)
					

空間音頻概述 provides a more detailed description about how to use the different classes listed below.

QML 類型

下錶提綱瞭一些重要 QML 類型。

類型 描述
AudioEngine The engine doing the processing of the audio scene
SpatialSound A sound source located in 3D space.
AmbientSound A location independent stereo sound track.
AudioRoom Defines a room that generates audio reverb and reflections.

C++ 類

下錶提綱瞭一些重要 C++ 類

描述
QAudioEngine The engine doing the processing of the audio scene
QSpatialSound A sound source located in 3D space.
QAmbientSound A location independent stereo sound track.
QAudioRoom Defines a room that generates audio reverb and reflections.

許可和歸屬

Qt Spatial Audio 模塊在商業許可下是可用的來自 Qt 公司 。此外,它在自由軟件許可下也是可用的。這些自由軟件許可是 GNU LGPL (次一般公共許可) 第 3 版 ,或 GNU GPL (一般公共許可) 第 3 版 。見 Qt 許可 進一步瞭解細節。

Note that Qt Spatial Audio is not available under the GNU GPL (一般公共許可) 第 2 版 .

Furthermore, Qt Spatial Audio in Qt 6.8.5 contains third party modules under the following permissive licenses:

Eigen,第 3.4.0 版

Mozilla 公共許可 2.0 和 BSD 3 條款新 (或修訂) 許可

Resonance Audio, version e225aedb5ec76ca6a0fe7079c0b84dbcbb490553

Apache 許可 2.0

pffft, version 02fe7715a5bf8bfd914681c53429600f94e0f536

BSD 3 條款新 (或修訂) 許可

參考和範例