Qt Spatial Audio Module C++ Classes

Qt Spatial Audio模块提供 3D 音频功能。更多

QAmbientSound

立体声叠加音效

QAudioEngine

管理三维声场

QAudioListener

定义收听 QAudioEngine 所定义声场的人的位置和方向

QAudioRoom

QSpatialSound

三维空间中的声音对象

详细说明

使用模块

使用 Qt 模块需要直接或通过其他依赖关系与模块库链接。有几种构建工具为此提供了专门支持,包括CMakeqmake

使用 CMake 构建

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

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

© 2025 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.