AudioStream
An audio stream that streams data from disk.
-
AudioStream(file_path: str, volume: float = 1.0)
Properties
Name | Description | Type |
---|---|---|
volume | The volume of the audio stream, from 0.0-1.0, with values above 1.0 allowed for amplification. | float |
Methods
Play
play() → None
Play the audio stream.
Stop
stop() → None
Stop the audio stream.
Pause
pause() → None
Pause the audio stream.
Resume
resume() → None
Resume the audio stream.
Rewind
rewind() → None
Rewind the audio stream.
Set Looping
setLooping() → None
Set whether the audio stream should loop.