本页内容

Qt Spatial Audio Module C++ Classes

该 Qt Spatial Audio 该模块提供了3D音频功能。更多内容...

类

QAmbientSound

立体声叠加音频

QAudioEngine

管理三维声场

QAudioListener

定义聆听由QAudioEngine定义的声场时,听者的位置和方向

QAudioRoom

QSpatialSound

三维空间中的声音对象

详细说明

使用该模块

使用 Qt 模块需要将其与模块库进行链接,既可以直接链接,也可以通过其他依赖项间接链接。包括CMake和qmake 在内的多种构建工具均对此提供了专门支持。

使用 CMake 构建

使用find_package() 命令在Qt6 软件包中定位所需的模块组件:

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

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.