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