Path: blob/master/modules/interactive_music/doc_classes/AudioStreamPlaylist.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="AudioStreamPlaylist" inherits="AudioStream" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3[AudioStream] that includes sub-streams and plays them back like a playlist.4</brief_description>5<description>6</description>7<tutorials>8</tutorials>9<methods>10<method name="get_bpm" qualifiers="const">11<return type="float" />12<description>13Returns the BPM of the playlist, which can vary depending on the clip being played.14</description>15</method>16<method name="get_list_stream" qualifiers="const">17<return type="AudioStream" />18<param index="0" name="stream_index" type="int" />19<description>20Returns the stream at playback position index.21</description>22</method>23<method name="set_list_stream">24<return type="void" />25<param index="0" name="stream_index" type="int" />26<param index="1" name="audio_stream" type="AudioStream" />27<description>28Sets the stream at playback position index.29</description>30</method>31</methods>32<members>33<member name="fade_time" type="float" setter="set_fade_time" getter="get_fade_time" default="0.3">34Fade 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.35</member>36<member name="loop" type="bool" setter="set_loop" getter="has_loop" default="true">37If [code]true[/code], the playlist will loop, otherwise the playlist will end when the last stream is finished.38</member>39<member name="shuffle" type="bool" setter="set_shuffle" getter="get_shuffle" default="false">40If [code]true[/code], the playlist will shuffle each time playback starts and each time it loops.41</member>42<member name="stream_count" type="int" setter="set_stream_count" getter="get_stream_count" default="0">43Amount of streams in the playlist.44</member>45</members>46<constants>47<constant name="MAX_STREAMS" value="64">48Maximum amount of streams supported in the playlist.49</constant>50</constants>51</class>525354