Class AudioStreamPlaylist
AudioStream that includes sub-streams and plays them back like a playlist.
- Inheritance
-
AudioStreamPlaylist
Fields
MAX_STREAMS
Maximum amount of streams supported in the playlist.
const MAX_STREAMS = 64
Properties
fade_time
Fade time used when a stream ends, when going to the next one. Streams are expected to have an extra bit of audio after the end to help with fading.
var fade_time : float = 0.3
Property Value
Remarks
loop
If true
, the playlist will loop, otherwise the playlist will end when the last stream is finished.
var loop : bool = true
Property Value
Remarks
shuffle
If true
, the playlist will shuffle each time playback starts and each time it loops.
var shuffle : bool = false
Property Value
Remarks
stream_count
Amount of streams in the playlist.
var stream_count : int = 0
Property Value
Remarks
Methods
get_bpm
Qualifiers: const
Returns the BPM of the playlist, which can vary depending on the clip being played.
float get_bpm
get_list_stream(int)
Qualifiers: const
Returns the stream at playback position index.
AudioStream get_list_stream(int stream_index)
Parameters
stream_index
int
set_list_stream(int, AudioStream)
Sets the stream at playback position index.
void set_list_stream(int stream_index, AudioStream audio_stream)
Parameters
stream_index
intaudio_stream
AudioStream