Qt Spatial Audio Module C++ Classes▲
The Qt Spatial Audio module provides functionality for 3D audio.
Classes▲
-
QAmbientSound: A stereo overlay sound.
-
QAudioEngine: QAudioEngine manages a three dimensional sound field.
-
QAudioListener: Defines the position and orientation of the person listening to a sound field defined by QAudioEngine.
-
QSpatialSound: A sound object in 3D space.
Detailed Description▲
Using the Module▲
Using a Qt module requires linking against the module library, either directly or through other dependencies. Several build tools have dedicated support for this, including CMake and qmake.
Building with CMake▲
Use the find_package() command to locate the needed module components in the Qt6 package:
find_package(Qt6 REQUIRED COMPONENTS SpatialAudio)
target_link_libraries(my_project PRIVATE Qt6::
SpatialAudio)