PySide6.QtSpatialAudio¶
Detailed Description¶
The Qt Spatial Audio module provides APIs for modeling sound source and their surrounds in 3D space
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.
Getting started¶
If you are new to Qt Spatial Audio, the QML types can be imported into an application using the following statement in your .qml file.
To link against the C++ libraries, add the following to your project’s CMakeLists.txt file. Substitute my_project with the name of your project.
find_package(Qt6 REQUIRED COMPONENTS SpatialAudio) target_link_libraries(my_project PRIVATE Qt6::SpatialAudio)
Spatial Audio Overview provides a more detailed description about how to use the different classes listed below.
QML Types¶
The following table outlines some important QML types.
Type
Description
The engine doing the processing of the audio scene
A sound source located in 3D space.
A location independent stereo sound track.
Defines a room that generates audio reverb and reflections.