A streaming audio resource intended for long music files. Access via the 'mixer' submodule.
Inherits from Audio.
| Name | Description | Type |
|---|---|---|
playback_pos | Current position in seconds. 0.0 if stopped/never played, paused position if paused. | float |
looping | Whether the stream should loop when it reaches the end. | bool |
pause() → Nonepause() → NonePause playback. Releases the hardware track but preserves position.
resume(fade_in: float = 0.0) → Noneresume(fade_in: float = 0.0) → NoneResume playback from a paused state.
Args
fade_in : Duration in seconds to fade back in. Defaults to 0.0.seek(seconds: float) → Noneseek(seconds: float) → NoneJump to a specific time in the audio file.
Args
seconds : Target position in seconds from the start.