class_audiostreammp3.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/modules/minimp3/doc_classes/AudioStreamMP3.xml.
  6. .. _class_AudioStreamMP3:
  7. AudioStreamMP3
  8. ==============
  9. **Inherits:** :ref:`AudioStream<class_AudioStream>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. MP3 audio stream driver.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. MP3 audio stream driver.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------------------+---------------------------------------------------------------+-----------------------+
  21. | :ref:`PoolByteArray<class_PoolByteArray>` | :ref:`data<class_AudioStreamMP3_property_data>` | ``PoolByteArray( )`` |
  22. +-------------------------------------------+---------------------------------------------------------------+-----------------------+
  23. | :ref:`bool<class_bool>` | :ref:`loop<class_AudioStreamMP3_property_loop>` | ``false`` |
  24. +-------------------------------------------+---------------------------------------------------------------+-----------------------+
  25. | :ref:`float<class_float>` | :ref:`loop_offset<class_AudioStreamMP3_property_loop_offset>` | ``0.0`` |
  26. +-------------------------------------------+---------------------------------------------------------------+-----------------------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Property Descriptions
  31. ---------------------
  32. .. _class_AudioStreamMP3_property_data:
  33. .. rst-class:: classref-property
  34. :ref:`PoolByteArray<class_PoolByteArray>` **data** = ``PoolByteArray( )``
  35. .. rst-class:: classref-property-setget
  36. - void **set_data** **(** :ref:`PoolByteArray<class_PoolByteArray>` value **)**
  37. - :ref:`PoolByteArray<class_PoolByteArray>` **get_data** **(** **)**
  38. Contains the audio data in bytes.
  39. .. rst-class:: classref-item-separator
  40. ----
  41. .. _class_AudioStreamMP3_property_loop:
  42. .. rst-class:: classref-property
  43. :ref:`bool<class_bool>` **loop** = ``false``
  44. .. rst-class:: classref-property-setget
  45. - void **set_loop** **(** :ref:`bool<class_bool>` value **)**
  46. - :ref:`bool<class_bool>` **has_loop** **(** **)**
  47. If ``true``, the stream will automatically loop when it reaches the end.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_AudioStreamMP3_property_loop_offset:
  51. .. rst-class:: classref-property
  52. :ref:`float<class_float>` **loop_offset** = ``0.0``
  53. .. rst-class:: classref-property-setget
  54. - void **set_loop_offset** **(** :ref:`float<class_float>` value **)**
  55. - :ref:`float<class_float>` **get_loop_offset** **(** **)**
  56. Time in seconds at which the stream starts after being looped.
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`