Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/modules/interactive_music/doc_classes/AudioStreamSynchronized.xml
10278 views
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<class name="AudioStreamSynchronized" inherits="AudioStream" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3
<brief_description>
4
Stream that can be fitted with sub-streams, which will be played in-sync.
5
</brief_description>
6
<description>
7
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.
8
</description>
9
<tutorials>
10
</tutorials>
11
<methods>
12
<method name="get_sync_stream" qualifiers="const">
13
<return type="AudioStream" />
14
<param index="0" name="stream_index" type="int" />
15
<description>
16
Get one of the synchronized streams, by index.
17
</description>
18
</method>
19
<method name="get_sync_stream_volume" qualifiers="const">
20
<return type="float" />
21
<param index="0" name="stream_index" type="int" />
22
<description>
23
Get the volume of one of the synchronized streams, by index.
24
</description>
25
</method>
26
<method name="set_sync_stream">
27
<return type="void" />
28
<param index="0" name="stream_index" type="int" />
29
<param index="1" name="audio_stream" type="AudioStream" />
30
<description>
31
Set one of the synchronized streams, by index.
32
</description>
33
</method>
34
<method name="set_sync_stream_volume">
35
<return type="void" />
36
<param index="0" name="stream_index" type="int" />
37
<param index="1" name="volume_db" type="float" />
38
<description>
39
Set the volume of one of the synchronized streams, by index.
40
</description>
41
</method>
42
</methods>
43
<members>
44
<member name="stream_count" type="int" setter="set_stream_count" getter="get_stream_count" default="0">
45
Set the total amount of streams that will be played back synchronized.
46
</member>
47
</members>
48
<constants>
49
<constant name="MAX_STREAMS" value="32">
50
Maximum amount of streams that can be synchronized.
51
</constant>
52
</constants>
53
</class>
54
55