Table of Contents

Class AudioStreamSynchronized

Stream that can be fitted with sub-streams, which will be played in-sync.

Inheritance
AudioStreamSynchronized

Remarks

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.

Fields

MAX_STREAMS

Maximum amount of streams that can be synchronized.

const MAX_STREAMS = 32

Properties

stream_count

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

var stream_count : int = 0

Property Value

int

Remarks

  • void set_stream_count(int value)
  • int get_stream_count

Methods

get_sync_stream(int)

Qualifiers: const

Get one of the synchronized streams, by index.

AudioStream get_sync_stream(int stream_index)

Parameters

stream_index int

get_sync_stream_volume(int)

Qualifiers: const

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

float get_sync_stream_volume(int stream_index)

Parameters

stream_index int

set_sync_stream(int, AudioStream)

Set one of the synchronized streams, by index.

void set_sync_stream(int stream_index, AudioStream audio_stream)

Parameters

stream_index int
audio_stream AudioStream

set_sync_stream_volume(int, float)

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

void set_sync_stream_volume(int stream_index, float volume_db)

Parameters

stream_index int
volume_db float