AudioStreamPlaylist.xml 2.1 KB

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