spatialaudio
Class info
Classes
| Name | Children | Inherits |
|---|---|---|
| AmbientSound prettyqt.spatialaudio.ambientsound A stereo overlay sound. |
||
| AudioEngine prettyqt.spatialaudio.audioengine Manages a three dimensional sound field. |
||
| AudioListener prettyqt.spatialaudio.audiolistener Defines the position and orientation of the person listening to a sound field. |
||
| AudioRoom prettyqt.spatialaudio.audioroom Represents a room with its acoustic properties. |
||
| SpatialSound prettyqt.spatialaudio.spatialsound A sound object in 3D space. |
🛈 DocStrings
Create sound scenes in 3D space containing different sound sources.
AmbientSound
Bases: ObjectMixin, QAmbientSound
A stereo overlay sound.
Source code in prettyqt/spatialaudio/ambientsound.py
AudioEngine
Bases: ObjectMixin, QAudioEngine
Manages a three dimensional sound field.
Source code in prettyqt/spatialaudio/audioengine.py
get_output_mode() -> OutputModeStr
set_output_mode(mode: OutputModeStr | QtSpatialAudio.QAudioEngine.OutputMode)
Set the output mode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode
|
OutputModeStr | OutputMode
|
output mode |
required |
AudioListener
Bases: ObjectMixin, QAudioListener
Defines the position and orientation of the person listening to a sound field.
Source code in prettyqt/spatialaudio/audiolistener.py
AudioRoom
Bases: ObjectMixin, QAudioRoom
Represents a room with its acoustic properties.
Source code in prettyqt/spatialaudio/audioroom.py
get_wall_material(wall: WallStr | QtSpatialAudio.QAudioRoom.Wall) -> MaterialStr
Return wall material.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wall
|
WallStr | Wall
|
wall to get material for |
required |
Source code in prettyqt/spatialaudio/audioroom.py
set_wall_material(wall: WallStr | QtSpatialAudio.QAudioRoom.Wall, material: MaterialStr | QtSpatialAudio.QAudioRoom.Material)
Set the wall material.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wall
|
WallStr | Wall
|
Wall to set |
required |
material
|
MaterialStr | Material
|
material type |
required |
Source code in prettyqt/spatialaudio/audioroom.py
SpatialSound
Bases: ObjectMixin, QSpatialSound
A sound object in 3D space.
Source code in prettyqt/spatialaudio/spatialsound.py
get_distance_model() -> DistanceModelStr
set_distance_model(model: DistanceModelStr | QtSpatialAudio.QSpatialSound.DistanceModel)
Set the distance model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
DistanceModelStr | DistanceModel
|
distance model |
required |