PySide6.QtSpatialAudio.QAudioListener¶
- class QAudioListener¶
- Defines the position and orientation of the person listening to a sound field defined by - QAudioEngine. More…- Synopsis¶- Methods¶- def - __init__()
- def - engine()
- def - position()
- def - rotation()
- def - setPosition()
- def - setRotation()
 - Note - 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 - Detailed Description¶- A - QAudioEnginecan have exactly one listener that defines the position and orientation of the person listening to the sound field.- __init__(engine)¶
- Parameters:
- engine – - QAudioEngine
 
 - Creates a listener for the spatial audio engine for - engine.- engine()¶
- Return type:
 
 - Returns the engine associated with this listener. - Returns the current position of the listener. - See also - rotation()¶
- Return type:
 
 - Returns the listener’s orientation in 3D space. - See also - Sets the listener’s position in 3D space to - pos. Units are in centimeters by default.- See also - setRotation(q)¶
- Parameters:
- q – - QQuaternion
 
 - Sets the listener’s orientation in 3D space to - q.- See also