Skip to content
0.2.0-dev Download ZIP
54 lines ·2.3 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="AudioStreamPlaylist" inherits="AudioStream" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 [AudioStream] that includes sub-streams and plays them back like a playlist.
5 </brief_description>
6 <description>
7 An audio stream that can play back sub-streams in sequence. Streams can be added to the Playlist with [method set_list_stream], and shuffled with [member shuffle].
8 </description>
9 <tutorials>
10 <link title="Audio streams">$DOCS_URL/tutorials/audio/audio_streams.html</link>
11 </tutorials>
12 <methods>
13 <method name="get_bpm" qualifiers="const">
14 <return type="float" />
15 <description>
16 Returns the BPM of the playlist, which can vary depending on the clip being played.
17 </description>
18 </method>
19 <method name="get_list_stream" qualifiers="const">
20 <return type="AudioStream" />
21 <param index="0" name="stream_index" type="int" />
22 <description>
23 Returns the stream at playback position index.
24 </description>
25 </method>
26 <method name="set_list_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 Sets the stream at playback position index.
32 </description>
33 </method>
34 </methods>
35 <members>
36 <member name="fade_time" type="float" setter="set_fade_time" getter="get_fade_time" default="0.3">
37 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.
38 </member>
39 <member name="loop" type="bool" setter="set_loop" getter="has_loop" default="true">
40 If [code]true[/code], the playlist will loop, otherwise the playlist will end when the last stream is finished.
41 </member>
42 <member name="shuffle" type="bool" setter="set_shuffle" getter="get_shuffle" default="false">
43 If [code]true[/code], the playlist will shuffle each time playback starts and each time it loops.
44 </member>
45 <member name="stream_count" type="int" setter="set_stream_count" getter="get_stream_count" default="0">
46 Amount of streams in the playlist.
47 </member>
48 </members>
49 <constants>
50 <constant name="MAX_STREAMS" value="64">
51 Maximum amount of streams supported in the playlist.
52 </constant>
53 </constants>
54</class>