Class reference
AudioStreamPlaylist
Inherits AudioStream
AudioStream that includes sub-streams and plays them back like a playlist.
Properties
float fade_time = 0.3
float fade_time = 0.3Fade 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.
bool loop = true
bool loop = trueIf true, the playlist will loop, otherwise the playlist will end when the last stream is finished.
bool shuffle = false
bool shuffle = falseIf true, the playlist will shuffle each time playback starts and each time it loops.
int stream_count = 0
int stream_count = 0Amount of streams in the playlist.
Methods
float get_bpm() const
float get_bpm() constReturns the BPM of the playlist, which can vary depending on the clip being played.
AudioStream get_list_stream(int stream_index) const
AudioStream get_list_stream(int stream_index) constReturns the stream at playback position index.
void set_list_stream(int stream_index, AudioStream audio_stream)
int stream_index, AudioStream audio_stream)Sets the stream at playback position index.
Constants
MAX_STREAMS = 64
Maximum amount of streams supported in the playlist.