Skip to content

AudioListener

Base classes

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

⋔ Inheritance diagram

graph TD
  1798797751["spatialaudio.AudioListener"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  2989657892["QtSpatialAudio.QAudioListener"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  3227531497 --> 1798797751
  2751680898 --> 3227531497
  2989657892 --> 1798797751
  3984060476 --> 2989657892
  37984305 --> 3984060476
  2751680898 --> 37984305

🛈 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))

:fa-brands-github: Show source on GitHub