Defines the position and orientation of the person listening to a sound field defined by QAudioEngine. More...
Header: | #include <QAudioListener> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS SpatialAudio) target_link_libraries(mytarget PRIVATE Qt6::SpatialAudio) |
qmake: | QT += spatialaudio |
Inherits: | QObject |
QAudioListener(QAudioEngine *engine) | |
virtual | ~QAudioListener() |
QAudioEngine * | engine() const |
QVector3D | position() const |
QQuaternion | rotation() const |
void | setPosition(QVector3D pos) |
void | setRotation(const QQuaternion &q) |
A QAudioEngine can have exactly one listener that defines the position and orientation of the person listening to the sound field.
Creates a listener for the spatial audio engine for engine.
[virtual]
QAudioListener::~QAudioListener()Destroys the listener.
Returns the engine associated with this listener.
Returns the current position of the listener.
See also setPosition().
Returns the listener's orientation in 3D space.
See also setRotation().
Sets the listener's position in 3D space to pos. Units are in centimeters by default.
See also position() and QAudioEngine::distanceScale.
Sets the listener's orientation in 3D space to q.
See also rotation().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: