AudioStreamSynchronized
Inherits: AudioStream < Resource < RefCounted < Object
Description
Section titled “Description”Stream that can be fitted with sub-streams, which will be played in-sync.
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
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| int | stream_count |
0 |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| AudioStream | get_sync_stream(stream_index: int) const |
| float | get_sync_stream_volume(stream_index: int) const |
| void | set_sync_stream(stream_index: int, audio_stream: AudioStream) |
| void | set_sync_stream_volume(stream_index: int, volume_db: float) |
Constants
Section titled “Constants”MAX_STREAMS = 32
Maximum amount of streams that can be synchronized.
Property descriptions
Section titled “Property descriptions”stream_count
int stream_count = 0
Set the total amount of streams that will be played back synchronized.
Method descriptions
Section titled “Method descriptions”get_sync_stream
AudioStream get_sync_stream(stream_index: int) const
Get one of the synchronized streams, by index.
get_sync_stream_volume
float get_sync_stream_volume(stream_index: int) const
Get the volume of one of the synchronized streams, by index.
set_sync_stream
void set_sync_stream(stream_index: int, audio_stream: AudioStream)
Set one of the synchronized streams, by index.
set_sync_stream_volume
void set_sync_stream_volume(stream_index: int, volume_db: float)
Set the volume of one of the synchronized streams, by index.
