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

Set the total amount of streams that will be played back synchronized.

Methods

AudioStream get_sync_stream(int stream_index) const

Get one of the synchronized streams, by index.

float get_sync_stream_volume(int stream_index) const

Get the volume of one of the synchronized streams, by index.

void set_sync_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)

Set the volume of one of the synchronized streams, by index.

Constants

MAX_STREAMS = 32

Maximum amount of streams that can be synchronized.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.