Class reference
AudioStreamSynchronized
Inherits AudioStream
Stream that can be fitted with sub-streams, which will be played in-sync.
Description
This is a stream that can be fitted with sub-streams, which will be played in-sync. The streams begin at exactly the same time when play is pressed, and will end when the last of them ends. If one of the sub-streams loops, then playback will continue.
Properties
int stream_count = 0
int stream_count = 0Set the total amount of streams that will be played back synchronized.
Methods
AudioStream get_sync_stream(int stream_index) const
AudioStream get_sync_stream(int stream_index) constGet one of the synchronized streams, by index.
float get_sync_stream_volume(int stream_index) const
float get_sync_stream_volume(int stream_index) constGet the volume of one of the synchronized streams, by index.
void set_sync_stream(int stream_index, AudioStream audio_stream)
int stream_index, AudioStream audio_stream)Set one of the synchronized streams, by index.
void set_sync_stream_volume(int stream_index, float volume_db)
int stream_index, float volume_db)Set the volume of one of the synchronized streams, by index.
Constants
MAX_STREAMS = 32
Maximum amount of streams that can be synchronized.