SpatialSound
Qt Base Class: QSpatialSound
Signature: QSpatialSound(self, engine: PySide6.QtSpatialAudio.QAudioEngine) -> None
Base classes
Name | Children | Inherits |
---|---|---|
ObjectMixin prettyqt.core.object |
||
QSpatialSound PySide6.QtSpatialAudio QSpatialSound(self, engine: PySide6.QtSpatialAudio.QAudioEngine) -> None |
⋔ Inheritance diagram
graph TD
1473574623424["spatialaudio.SpatialSound"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473574590240["QtSpatialAudio.QSpatialSound"]
1473288842240["QtCore.QObject"]
1473291690208["Shiboken.Object"]
1473299815024 --> 1473574623424
140713234304496 --> 1473299815024
1473574590240 --> 1473574623424
1473288842240 --> 1473574590240
1473291690208 --> 1473288842240
140713234304496 --> 1473291690208
🛈 DocStrings
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 |
⌗ Property table
Qt Property | Type | Doc |
---|---|---|
objectName |
QString | |
source |
QUrl | |
position |
QVector3D | |
rotation |
QQuaternion | |
volume |
float | |
distanceModel |
QSpatialSound::DistanceModel | |
size |
float | |
distanceCutoff |
float | |
manualAttenuation |
float | |
occlusionIntensity |
float | |
directivity |
float | |
directivityOrder |
float | |
nearFieldGain |
float | |
loops |
int | |
autoPlay |
bool |