diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-11-08 12:59:10 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-11-08 15:22:51 +0100 |
| commit | 8ed5cf2c5cccfc06347498e58104a17d65e88379 (patch) | |
| tree | 29d1feed9c0a16d129177e07f56b5e9a985f2328 /sources/pyside6/doc/tutorials/qmlintegration | |
| parent | c4aa90c3e40370a8c6ad825c11f3944f09fd5b59 (diff) | |
Fix examples/spatialaudio/audiopanning to run
The enum Loops provides constants ( Infinite = -1, Once = 1) to be
passed to functions taking int. Change the type to IntEnum to enable
this.
Fixes:
self._sound.setLoops(QSpatialSound.Infinite)
TypeError: 'PySide6.QtSpatialAudio.QSpatialSound.setLoops' called with wrong argument types:
PySide6.QtSpatialAudio.QSpatialSound.setLoops(Loops)
Pick-to: 6.8
Change-Id: Ife4d7a6197220f13a2d59547d8a6b3a503eaff55
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/qmlintegration')
0 files changed, 0 insertions, 0 deletions
