Skip to content

AudioListener

Qt Base Class: QAudioListener

Signature: QAudioListener(self, engine: PySide6.QtSpatialAudio.QAudioEngine) -> None

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object
QAudioListener
PySide6.QtSpatialAudio
QAudioListener(self, engine: PySide6.QtSpatialAudio.QAudioEngine) -> None

⋔ Inheritance diagram

graph TD
  1473574622448["spatialaudio.AudioListener"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473574610736["QtSpatialAudio.QAudioListener"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299815024 --> 1473574622448
  140713234304496 --> 1473299815024
  1473574610736 --> 1473574622448
  1473288842240 --> 1473574610736
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: ObjectMixin, QAudioListener

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

Source code in prettyqt\spatialaudio\audiolistener.py
class AudioListener(core.ObjectMixin, QtSpatialAudio.QAudioListener):
    """Defines the position and orientation of the person listening to a sound field."""

    def set_position(self, position: datatypes.Vector3DType):
        self.setPosition(datatypes.to_vector3d(position))

⌗ Property table

Qt Property Type Doc
objectName QString