Sur cette page

Qt Spatial Audio Module C++ Classes

Le module Qt Spatial Audio fournit des fonctionnalités pour l'audio 3D. Plus...

Classes

QAmbientSound

Un son stéréo superposé

QAudioEngine

Gestion d'un champ sonore tridimensionnel

QAudioListener

Définit la position et l'orientation de la personne qui écoute un champ sonore défini par QAudioEngine.

QAudioRoom

QSpatialSound

Un objet sonore dans l'espace 3D

Description détaillée

Utilisation du module

L'utilisation d'un module Qt nécessite l'établissement d'un lien avec la bibliothèque du module, soit directement, soit par l'intermédiaire d'autres dépendances. Plusieurs outils de construction disposent d'un support dédié à cet effet, notamment CMake et qmake.

Construction avec CMake

Utilisez la commande find_package() pour localiser les composants du module nécessaires dans le paquetage Qt6:

find_package(Qt6 REQUIRED COMPONENTS SpatialAudio)
target_link_libraries(my_project 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.