class_audiostreamsynchronized.rst 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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/AudioStreamSynchronized.xml.
  6. .. _class_AudioStreamSynchronized:
  7. AudioStreamSynchronized
  8. =======================
  9. **Inherits:** :ref:`AudioStream<class_AudioStream>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Stream that can be fitted with sub-streams, which will be played in-sync.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This is a stream that can be fitted with sub-streams, which will be played in-sync. The streams being at exactly the same time when play is pressed, and will end when the last of them ends. If one of the sub-streams loops, then playback will continue.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-----------------------+--------------------------------------------------------------------------+-------+
  21. | :ref:`int<class_int>` | :ref:`stream_count<class_AudioStreamSynchronized_property_stream_count>` | ``0`` |
  22. +-----------------------+--------------------------------------------------------------------------+-------+
  23. .. rst-class:: classref-reftable-group
  24. Methods
  25. -------
  26. .. table::
  27. :widths: auto
  28. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`AudioStream<class_AudioStream>` | :ref:`get_sync_stream<class_AudioStreamSynchronized_method_get_sync_stream>`\ (\ stream_index\: :ref:`int<class_int>`\ ) |const| |
  30. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`float<class_float>` | :ref:`get_sync_stream_volume<class_AudioStreamSynchronized_method_get_sync_stream_volume>`\ (\ stream_index\: :ref:`int<class_int>`\ ) |const| |
  32. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | |void| | :ref:`set_sync_stream<class_AudioStreamSynchronized_method_set_sync_stream>`\ (\ stream_index\: :ref:`int<class_int>`, audio_stream\: :ref:`AudioStream<class_AudioStream>`\ ) |
  34. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | |void| | :ref:`set_sync_stream_volume<class_AudioStreamSynchronized_method_set_sync_stream_volume>`\ (\ stream_index\: :ref:`int<class_int>`, volume_db\: :ref:`float<class_float>`\ ) |
  36. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Constants
  41. ---------
  42. .. _class_AudioStreamSynchronized_constant_MAX_STREAMS:
  43. .. rst-class:: classref-constant
  44. **MAX_STREAMS** = ``32`` :ref:`🔗<class_AudioStreamSynchronized_constant_MAX_STREAMS>`
  45. Maximum amount of streams that can be synchronized.
  46. .. rst-class:: classref-section-separator
  47. ----
  48. .. rst-class:: classref-descriptions-group
  49. Property Descriptions
  50. ---------------------
  51. .. _class_AudioStreamSynchronized_property_stream_count:
  52. .. rst-class:: classref-property
  53. :ref:`int<class_int>` **stream_count** = ``0`` :ref:`🔗<class_AudioStreamSynchronized_property_stream_count>`
  54. .. rst-class:: classref-property-setget
  55. - |void| **set_stream_count**\ (\ value\: :ref:`int<class_int>`\ )
  56. - :ref:`int<class_int>` **get_stream_count**\ (\ )
  57. Set the total amount of streams that will be played back synchronized.
  58. .. rst-class:: classref-section-separator
  59. ----
  60. .. rst-class:: classref-descriptions-group
  61. Method Descriptions
  62. -------------------
  63. .. _class_AudioStreamSynchronized_method_get_sync_stream:
  64. .. rst-class:: classref-method
  65. :ref:`AudioStream<class_AudioStream>` **get_sync_stream**\ (\ stream_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_AudioStreamSynchronized_method_get_sync_stream>`
  66. Get one of the synchronized streams, by index.
  67. .. rst-class:: classref-item-separator
  68. ----
  69. .. _class_AudioStreamSynchronized_method_get_sync_stream_volume:
  70. .. rst-class:: classref-method
  71. :ref:`float<class_float>` **get_sync_stream_volume**\ (\ stream_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_AudioStreamSynchronized_method_get_sync_stream_volume>`
  72. Get the volume of one of the synchronized streams, by index.
  73. .. rst-class:: classref-item-separator
  74. ----
  75. .. _class_AudioStreamSynchronized_method_set_sync_stream:
  76. .. rst-class:: classref-method
  77. |void| **set_sync_stream**\ (\ stream_index\: :ref:`int<class_int>`, audio_stream\: :ref:`AudioStream<class_AudioStream>`\ ) :ref:`🔗<class_AudioStreamSynchronized_method_set_sync_stream>`
  78. Set one of the synchronized streams, by index.
  79. .. rst-class:: classref-item-separator
  80. ----
  81. .. _class_AudioStreamSynchronized_method_set_sync_stream_volume:
  82. .. rst-class:: classref-method
  83. |void| **set_sync_stream_volume**\ (\ stream_index\: :ref:`int<class_int>`, volume_db\: :ref:`float<class_float>`\ ) :ref:`🔗<class_AudioStreamSynchronized_method_set_sync_stream_volume>`
  84. Set the volume of one of the synchronized streams, by index.
  85. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  86. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  87. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  88. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  89. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  90. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  91. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  92. .. |void| replace:: :abbr:`void (No return value.)`