This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
QAudioEngine can have exactly one listener that defines the position and orientation of the person listening to the sound field.
- class PySide6.QtSpatialAudio.QAudioListener(engine)#
Creates a listener for the spatial audio engine for
Returns the engine associated with this listener.
Returns the current position of the listener.
Returns the listener’s orientation in 3D space.
Sets the listener’s position in 3D space to
pos. Units are in centimeters by default.
Sets the listener’s orientation in 3D space to