IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QAudioListener Class

Defines the position and orientation of the person listening to a sound field defined by QAudioEngine.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAudioListener Class

  • Header: QAudioListener

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS SpatialAudio)

    target_link_libraries(mytarget PRIVATE Qt6::SpatialAudio)

  • qmake: QT += spatialaudio

  • Inherits: QObject

  • Group: QAudioListener is part of spatialaudio, multimedia_audio

Detailed Description

A QAudioEngine can have exactly one listener that defines the position and orientation of the person listening to the sound field.

Member Function Documentation

 

[explicit] QAudioListener::QAudioListener(QAudioEngine *engine)

Creates a listener for the spatial audio engine for engine.

[virtual] QAudioListener::~QAudioListener()

Destroys the listener.

QAudioEngine *QAudioListener::engine() const

Returns the engine associated with this listener.

QVector3D QAudioListener::position() const

Returns the current position of the listener.

See Also

See also setPosition()

QQuaternion QAudioListener::rotation() const

Returns the listener's orientation in 3D space.

See Also

See also setRotation()

void QAudioListener::setPosition(QVector3D pos)

Sets the listener's position in 3D space to pos. Units are in centimeters by default.

See Also

void QAudioListener::setRotation(const QQuaternion &q)

Sets the listener's orientation in 3D space to q.

See Also

See also rotation()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+