QAudioListener Class
Define la posición y orientación de la persona que escucha un campo sonoro definido por QAudioEngine. Más...
| Cabecera: | #include <QAudioListener> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS SpatialAudio)target_link_libraries(mytarget PRIVATE Qt6::SpatialAudio) |
| qmake: | QT += spatialaudio |
| Hereda: | QObject |
Funciones Públicas
| QAudioListener(QAudioEngine *engine) | |
| virtual | ~QAudioListener() override |
| QAudioEngine * | engine() const |
| QVector3D | position() const |
| QQuaternion | rotation() const |
| void | setPosition(QVector3D pos) |
| void | setRotation(const QQuaternion &q) |
Descripción detallada
Un QAudioEngine puede tener exactamente un oyente que define la posición y orientación de la persona que escucha el campo sonoro.
Documentación de las funciones
[explicit] QAudioListener::QAudioListener(QAudioEngine *engine)
Crea una escucha para el motor de audio espacial para engine.
[override virtual noexcept] QAudioListener::~QAudioListener()
Destruye al oyente.
QAudioEngine *QAudioListener::engine() const
Devuelve el motor asociado a este oyente.
QVector3D QAudioListener::position() const
Devuelve la posición actual del oyente.
Véase también setPosition().
QQuaternion QAudioListener::rotation() const
Devuelve la orientación del oyente en el espacio 3D.
Véase también setRotation().
void QAudioListener::setPosition(QVector3D pos)
Establece la posición del oyente en el espacio 3D en pos. Por defecto, las unidades están en centímetros.
Véase también position() y QAudioEngine::distanceScale.
void QAudioListener::setRotation(const QQuaternion &q)
Establece la orientación del oyente en el espacio 3D en q.
Véase también rotation().
© 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.