class_audiostreamplaylist.rst 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/interactive_music/doc_classes/AudioStreamPlaylist.xml.
  6. .. _class_AudioStreamPlaylist:
  7. AudioStreamPlaylist
  8. ===================
  9. **Inherits:** :ref:`AudioStream<class_AudioStream>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. :ref:`AudioStream<class_AudioStream>` that includes sub-streams and plays them back like a playlist.
  11. .. rst-class:: classref-reftable-group
  12. Properties
  13. ----------
  14. .. table::
  15. :widths: auto
  16. +---------------------------+----------------------------------------------------------------------+-----------+
  17. | :ref:`float<class_float>` | :ref:`fade_time<class_AudioStreamPlaylist_property_fade_time>` | ``0.3`` |
  18. +---------------------------+----------------------------------------------------------------------+-----------+
  19. | :ref:`bool<class_bool>` | :ref:`loop<class_AudioStreamPlaylist_property_loop>` | ``true`` |
  20. +---------------------------+----------------------------------------------------------------------+-----------+
  21. | :ref:`bool<class_bool>` | :ref:`shuffle<class_AudioStreamPlaylist_property_shuffle>` | ``false`` |
  22. +---------------------------+----------------------------------------------------------------------+-----------+
  23. | :ref:`int<class_int>` | :ref:`stream_count<class_AudioStreamPlaylist_property_stream_count>` | ``0`` |
  24. +---------------------------+----------------------------------------------------------------------+-----------+
  25. .. rst-class:: classref-reftable-group
  26. Methods
  27. -------
  28. .. table::
  29. :widths: auto
  30. +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`float<class_float>` | :ref:`get_bpm<class_AudioStreamPlaylist_method_get_bpm>`\ (\ ) |const| |
  32. +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`AudioStream<class_AudioStream>` | :ref:`get_list_stream<class_AudioStreamPlaylist_method_get_list_stream>`\ (\ stream_index\: :ref:`int<class_int>`\ ) |const| |
  34. +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | |void| | :ref:`set_list_stream<class_AudioStreamPlaylist_method_set_list_stream>`\ (\ stream_index\: :ref:`int<class_int>`, audio_stream\: :ref:`AudioStream<class_AudioStream>`\ ) |
  36. +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Constants
  41. ---------
  42. .. _class_AudioStreamPlaylist_constant_MAX_STREAMS:
  43. .. rst-class:: classref-constant
  44. **MAX_STREAMS** = ``64`` :ref:`🔗<class_AudioStreamPlaylist_constant_MAX_STREAMS>`
  45. Maximum amount of streams supported in the playlist.
  46. .. rst-class:: classref-section-separator
  47. ----
  48. .. rst-class:: classref-descriptions-group
  49. Property Descriptions
  50. ---------------------
  51. .. _class_AudioStreamPlaylist_property_fade_time:
  52. .. rst-class:: classref-property
  53. :ref:`float<class_float>` **fade_time** = ``0.3`` :ref:`🔗<class_AudioStreamPlaylist_property_fade_time>`
  54. .. rst-class:: classref-property-setget
  55. - |void| **set_fade_time**\ (\ value\: :ref:`float<class_float>`\ )
  56. - :ref:`float<class_float>` **get_fade_time**\ (\ )
  57. 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.
  58. .. rst-class:: classref-item-separator
  59. ----
  60. .. _class_AudioStreamPlaylist_property_loop:
  61. .. rst-class:: classref-property
  62. :ref:`bool<class_bool>` **loop** = ``true`` :ref:`🔗<class_AudioStreamPlaylist_property_loop>`
  63. .. rst-class:: classref-property-setget
  64. - |void| **set_loop**\ (\ value\: :ref:`bool<class_bool>`\ )
  65. - :ref:`bool<class_bool>` **has_loop**\ (\ )
  66. If ``true``, the playlist will loop, otherwise the playlist will end when the last stream is finished.
  67. .. rst-class:: classref-item-separator
  68. ----
  69. .. _class_AudioStreamPlaylist_property_shuffle:
  70. .. rst-class:: classref-property
  71. :ref:`bool<class_bool>` **shuffle** = ``false`` :ref:`🔗<class_AudioStreamPlaylist_property_shuffle>`
  72. .. rst-class:: classref-property-setget
  73. - |void| **set_shuffle**\ (\ value\: :ref:`bool<class_bool>`\ )
  74. - :ref:`bool<class_bool>` **get_shuffle**\ (\ )
  75. If ``true``, the playlist will shuffle each time playback starts and each time it loops.
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_AudioStreamPlaylist_property_stream_count:
  79. .. rst-class:: classref-property
  80. :ref:`int<class_int>` **stream_count** = ``0`` :ref:`🔗<class_AudioStreamPlaylist_property_stream_count>`
  81. .. rst-class:: classref-property-setget
  82. - |void| **set_stream_count**\ (\ value\: :ref:`int<class_int>`\ )
  83. - :ref:`int<class_int>` **get_stream_count**\ (\ )
  84. Amount of streams in the playlist.
  85. .. rst-class:: classref-section-separator
  86. ----
  87. .. rst-class:: classref-descriptions-group
  88. Method Descriptions
  89. -------------------
  90. .. _class_AudioStreamPlaylist_method_get_bpm:
  91. .. rst-class:: classref-method
  92. :ref:`float<class_float>` **get_bpm**\ (\ ) |const| :ref:`🔗<class_AudioStreamPlaylist_method_get_bpm>`
  93. Returns the BPM of the playlist, which can vary depending on the clip being played.
  94. .. rst-class:: classref-item-separator
  95. ----
  96. .. _class_AudioStreamPlaylist_method_get_list_stream:
  97. .. rst-class:: classref-method
  98. :ref:`AudioStream<class_AudioStream>` **get_list_stream**\ (\ stream_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_AudioStreamPlaylist_method_get_list_stream>`
  99. Returns the stream at playback position index.
  100. .. rst-class:: classref-item-separator
  101. ----
  102. .. _class_AudioStreamPlaylist_method_set_list_stream:
  103. .. rst-class:: classref-method
  104. |void| **set_list_stream**\ (\ stream_index\: :ref:`int<class_int>`, audio_stream\: :ref:`AudioStream<class_AudioStream>`\ ) :ref:`🔗<class_AudioStreamPlaylist_method_set_list_stream>`
  105. Sets the stream at playback position index.
  106. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  107. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  108. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  109. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  110. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  111. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  112. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  113. .. |void| replace:: :abbr:`void (No return value.)`