QtSpatialAudio.pyi 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. # The PEP 484 type hints stub file for the QtSpatialAudio module.
  2. #
  3. # Generated by SIP 6.15.3
  4. #
  5. # Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. #
  7. # This file is part of PyQt6.
  8. #
  9. # This file may be used under the terms of the GNU General Public License
  10. # version 3.0 as published by the Free Software Foundation and appearing in
  11. # the file LICENSE included in the packaging of this file. Please review the
  12. # following information to ensure the GNU General Public License version 3.0
  13. # requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. #
  15. # If you do not wish to use this file under the terms of the GPL version 3.0
  16. # then you may purchase a commercial license. For more information contact
  17. # info@riverbankcomputing.com.
  18. #
  19. # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. import collections, re, typing, enum
  22. try:
  23. from warnings import deprecated
  24. except ImportError:
  25. pass
  26. import PyQt6.sip
  27. from PyQt6 import QtCore
  28. from PyQt6 import QtGui
  29. from PyQt6 import QtNetwork
  30. from PyQt6 import QtMultimedia
  31. # Support for QDate, QDateTime and QTime.
  32. import datetime
  33. # Convenient type aliases.
  34. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  35. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  36. class QAmbientSound(QtCore.QObject):
  37. class Loops(enum.Enum):
  38. Infinite = ... # type: QAmbientSound.Loops
  39. Once = ... # type: QAmbientSound.Loops
  40. def __init__(self, engine: 'QAudioEngine|None') -> None: ...
  41. def stop(self) -> None: ...
  42. def pause(self) -> None: ...
  43. def play(self) -> None: ...
  44. volumeChanged: typing.ClassVar[QtCore.pyqtSignal]
  45. autoPlayChanged: typing.ClassVar[QtCore.pyqtSignal]
  46. loopsChanged: typing.ClassVar[QtCore.pyqtSignal]
  47. sourceChanged: typing.ClassVar[QtCore.pyqtSignal]
  48. def engine(self) -> 'QAudioEngine|None': ...
  49. def volume(self) -> float: ...
  50. def setVolume(self, volume: float) -> None: ...
  51. def setAutoPlay(self, autoPlay: bool) -> None: ...
  52. def autoPlay(self) -> bool: ...
  53. def setLoops(self, loops: int) -> None: ...
  54. def loops(self) -> int: ...
  55. def source(self) -> QtCore.QUrl: ...
  56. def setSource(self, url: QtCore.QUrl) -> None: ...
  57. class QAudioEngine(QtCore.QObject):
  58. class OutputMode(enum.Enum):
  59. Surround = ... # type: QAudioEngine.OutputMode
  60. Stereo = ... # type: QAudioEngine.OutputMode
  61. Headphone = ... # type: QAudioEngine.OutputMode
  62. DistanceScaleCentimeter = ... # type: float
  63. DistanceScaleMeter = ... # type: float
  64. @typing.overload
  65. def __init__(self) -> None: ...
  66. @typing.overload
  67. def __init__(self, parent: QtCore.QObject|None) -> None: ...
  68. @typing.overload
  69. def __init__(self, sampleRate: int, parent: QtCore.QObject|None = ...) -> None: ...
  70. def resume(self) -> None: ...
  71. def pause(self) -> None: ...
  72. def stop(self) -> None: ...
  73. def start(self) -> None: ...
  74. distanceScaleChanged: typing.ClassVar[QtCore.pyqtSignal]
  75. pausedChanged: typing.ClassVar[QtCore.pyqtSignal]
  76. masterVolumeChanged: typing.ClassVar[QtCore.pyqtSignal]
  77. outputDeviceChanged: typing.ClassVar[QtCore.pyqtSignal]
  78. outputModeChanged: typing.ClassVar[QtCore.pyqtSignal]
  79. def distanceScale(self) -> float: ...
  80. def setDistanceScale(self, scale: float) -> None: ...
  81. def roomEffectsEnabled(self) -> bool: ...
  82. def setRoomEffectsEnabled(self, enabled: bool) -> None: ...
  83. def paused(self) -> bool: ...
  84. def setPaused(self, paused: bool) -> None: ...
  85. def masterVolume(self) -> float: ...
  86. def setMasterVolume(self, volume: float) -> None: ...
  87. def outputDevice(self) -> QtMultimedia.QAudioDevice: ...
  88. def setOutputDevice(self, device: QtMultimedia.QAudioDevice) -> None: ...
  89. def sampleRate(self) -> int: ...
  90. def outputMode(self) -> 'QAudioEngine.OutputMode': ...
  91. def setOutputMode(self, mode: 'QAudioEngine.OutputMode') -> None: ...
  92. class QAudioListener(QtCore.QObject):
  93. def __init__(self, engine: QAudioEngine|None) -> None: ...
  94. def engine(self) -> QAudioEngine|None: ...
  95. def rotation(self) -> QtGui.QQuaternion: ...
  96. def setRotation(self, q: QtGui.QQuaternion) -> None: ...
  97. def position(self) -> QtGui.QVector3D: ...
  98. def setPosition(self, pos: QtGui.QVector3D) -> None: ...
  99. class QAudioRoom(QtCore.QObject):
  100. class Wall(enum.Enum):
  101. LeftWall = ... # type: QAudioRoom.Wall
  102. RightWall = ... # type: QAudioRoom.Wall
  103. Floor = ... # type: QAudioRoom.Wall
  104. Ceiling = ... # type: QAudioRoom.Wall
  105. FrontWall = ... # type: QAudioRoom.Wall
  106. BackWall = ... # type: QAudioRoom.Wall
  107. class Material(enum.Enum):
  108. Transparent = ... # type: QAudioRoom.Material
  109. AcousticCeilingTiles = ... # type: QAudioRoom.Material
  110. BrickBare = ... # type: QAudioRoom.Material
  111. BrickPainted = ... # type: QAudioRoom.Material
  112. ConcreteBlockCoarse = ... # type: QAudioRoom.Material
  113. ConcreteBlockPainted = ... # type: QAudioRoom.Material
  114. CurtainHeavy = ... # type: QAudioRoom.Material
  115. FiberGlassInsulation = ... # type: QAudioRoom.Material
  116. GlassThin = ... # type: QAudioRoom.Material
  117. GlassThick = ... # type: QAudioRoom.Material
  118. Grass = ... # type: QAudioRoom.Material
  119. LinoleumOnConcrete = ... # type: QAudioRoom.Material
  120. Marble = ... # type: QAudioRoom.Material
  121. Metal = ... # type: QAudioRoom.Material
  122. ParquetOnConcrete = ... # type: QAudioRoom.Material
  123. PlasterRough = ... # type: QAudioRoom.Material
  124. PlasterSmooth = ... # type: QAudioRoom.Material
  125. PlywoodPanel = ... # type: QAudioRoom.Material
  126. PolishedConcreteOrTile = ... # type: QAudioRoom.Material
  127. Sheetrock = ... # type: QAudioRoom.Material
  128. WaterOrIceSurface = ... # type: QAudioRoom.Material
  129. WoodCeiling = ... # type: QAudioRoom.Material
  130. WoodPanel = ... # type: QAudioRoom.Material
  131. UniformMaterial = ... # type: QAudioRoom.Material
  132. def __init__(self, engine: QAudioEngine|None) -> None: ...
  133. reverbBrightnessChanged: typing.ClassVar[QtCore.pyqtSignal]
  134. reverbTimeChanged: typing.ClassVar[QtCore.pyqtSignal]
  135. reverbGainChanged: typing.ClassVar[QtCore.pyqtSignal]
  136. reflectionGainChanged: typing.ClassVar[QtCore.pyqtSignal]
  137. wallsChanged: typing.ClassVar[QtCore.pyqtSignal]
  138. rotationChanged: typing.ClassVar[QtCore.pyqtSignal]
  139. dimensionsChanged: typing.ClassVar[QtCore.pyqtSignal]
  140. positionChanged: typing.ClassVar[QtCore.pyqtSignal]
  141. def reverbBrightness(self) -> float: ...
  142. def setReverbBrightness(self, factor: float) -> None: ...
  143. def reverbTime(self) -> float: ...
  144. def setReverbTime(self, factor: float) -> None: ...
  145. def reverbGain(self) -> float: ...
  146. def setReverbGain(self, factor: float) -> None: ...
  147. def reflectionGain(self) -> float: ...
  148. def setReflectionGain(self, factor: float) -> None: ...
  149. def wallMaterial(self, wall: 'QAudioRoom.Wall') -> 'QAudioRoom.Material': ...
  150. def setWallMaterial(self, wall: 'QAudioRoom.Wall', material: 'QAudioRoom.Material') -> None: ...
  151. def rotation(self) -> QtGui.QQuaternion: ...
  152. def setRotation(self, q: QtGui.QQuaternion) -> None: ...
  153. def dimensions(self) -> QtGui.QVector3D: ...
  154. def setDimensions(self, dim: QtGui.QVector3D) -> None: ...
  155. def position(self) -> QtGui.QVector3D: ...
  156. def setPosition(self, pos: QtGui.QVector3D) -> None: ...
  157. class QSpatialSound(QtCore.QObject):
  158. class Loops(enum.Enum):
  159. Infinite = ... # type: QSpatialSound.Loops
  160. Once = ... # type: QSpatialSound.Loops
  161. class DistanceModel(enum.Enum):
  162. Logarithmic = ... # type: QSpatialSound.DistanceModel
  163. Linear = ... # type: QSpatialSound.DistanceModel
  164. ManualAttenuation = ... # type: QSpatialSound.DistanceModel
  165. def __init__(self, engine: QAudioEngine|None) -> None: ...
  166. def stop(self) -> None: ...
  167. def pause(self) -> None: ...
  168. def play(self) -> None: ...
  169. nearFieldGainChanged: typing.ClassVar[QtCore.pyqtSignal]
  170. directivityOrderChanged: typing.ClassVar[QtCore.pyqtSignal]
  171. directivityChanged: typing.ClassVar[QtCore.pyqtSignal]
  172. occlusionIntensityChanged: typing.ClassVar[QtCore.pyqtSignal]
  173. manualAttenuationChanged: typing.ClassVar[QtCore.pyqtSignal]
  174. distanceCutoffChanged: typing.ClassVar[QtCore.pyqtSignal]
  175. sizeChanged: typing.ClassVar[QtCore.pyqtSignal]
  176. distanceModelChanged: typing.ClassVar[QtCore.pyqtSignal]
  177. volumeChanged: typing.ClassVar[QtCore.pyqtSignal]
  178. rotationChanged: typing.ClassVar[QtCore.pyqtSignal]
  179. positionChanged: typing.ClassVar[QtCore.pyqtSignal]
  180. autoPlayChanged: typing.ClassVar[QtCore.pyqtSignal]
  181. loopsChanged: typing.ClassVar[QtCore.pyqtSignal]
  182. sourceChanged: typing.ClassVar[QtCore.pyqtSignal]
  183. def engine(self) -> QAudioEngine|None: ...
  184. def nearFieldGain(self) -> float: ...
  185. def setNearFieldGain(self, gain: float) -> None: ...
  186. def directivityOrder(self) -> float: ...
  187. def setDirectivityOrder(self, alpha: float) -> None: ...
  188. def directivity(self) -> float: ...
  189. def setDirectivity(self, alpha: float) -> None: ...
  190. def occlusionIntensity(self) -> float: ...
  191. def setOcclusionIntensity(self, occlusion: float) -> None: ...
  192. def manualAttenuation(self) -> float: ...
  193. def setManualAttenuation(self, attenuation: float) -> None: ...
  194. def distanceCutoff(self) -> float: ...
  195. def setDistanceCutoff(self, cutoff: float) -> None: ...
  196. def size(self) -> float: ...
  197. def setSize(self, size: float) -> None: ...
  198. def distanceModel(self) -> 'QSpatialSound.DistanceModel': ...
  199. def setDistanceModel(self, model: 'QSpatialSound.DistanceModel') -> None: ...
  200. def volume(self) -> float: ...
  201. def setVolume(self, volume: float) -> None: ...
  202. def rotation(self) -> QtGui.QQuaternion: ...
  203. def setRotation(self, q: QtGui.QQuaternion) -> None: ...
  204. def position(self) -> QtGui.QVector3D: ...
  205. def setPosition(self, pos: QtGui.QVector3D) -> None: ...
  206. def setAutoPlay(self, autoPlay: bool) -> None: ...
  207. def autoPlay(self) -> bool: ...
  208. def setLoops(self, loops: int) -> None: ...
  209. def loops(self) -> int: ...
  210. def source(self) -> QtCore.QUrl: ...
  211. def setSource(self, url: QtCore.QUrl) -> None: ...