summaryrefslogtreecommitdiffstats
path: root/modules/interactive_music/doc_classes/AudioStreamPlaylist.xml
blob: 1d429a932fd36dbd1783ea61546a24117c48f1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8" ?>
<class name="AudioStreamPlaylist" inherits="AudioStream" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
	<brief_description>
		[AudioStream] that includes sub-streams and plays them back like a playslit.
	</brief_description>
	<description>
	</description>
	<tutorials>
	</tutorials>
	<methods>
		<method name="get_bpm" qualifiers="const">
			<return type="float" />
			<description>
				Return the bpm of the playlist, which can vary depending on the clip being played.
			</description>
		</method>
		<method name="get_list_stream" qualifiers="const">
			<return type="AudioStream" />
			<param index="0" name="stream_index" type="int" />
			<description>
				Get the stream at playback position index.
			</description>
		</method>
		<method name="set_list_stream">
			<return type="void" />
			<param index="0" name="stream_index" type="int" />
			<param index="1" name="audio_stream" type="AudioStream" />
			<description>
				Set the stream at playback position index.
			</description>
		</method>
	</methods>
	<members>
		<member name="fade_time" type="float" setter="set_fade_time" getter="get_fade_time" default="0.3">
			Fade time used when a stream ends, when going to the next one. Streams are expected to have an extra bit of audio after the end to help with fading.
		</member>
		<member name="loop" type="bool" setter="set_loop" getter="has_loop" default="true">
			If true, the playlist will loop, otherwise the playlist when end when the last stream is played.
		</member>
		<member name="shuffle" type="bool" setter="set_shuffle" getter="get_shuffle" default="false">
			Shuffle the playlist. Streams are played in random order.
		</member>
		<member name="stream_count" type="int" setter="set_stream_count" getter="get_stream_count" default="0">
			Amount of streams in the playlist.
		</member>
	</members>
	<constants>
		<constant name="MAX_STREAMS" value="64">
			Maximum amount of streams supported in the playlist.
		</constant>
	</constants>
</class>