class_audiostreamoggvorbis.rst 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AudioStreamOGGVorbis.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AudioStreamOGGVorbis:
  6. AudioStreamOGGVorbis
  7. ====================
  8. **Inherits:** :ref:`AudioStream<class_AudioStream>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. OGG Vorbis audio stream driver.
  10. Description
  11. -----------
  12. OGG Vorbis audio stream driver.
  13. Properties
  14. ----------
  15. +-------------------------------------------+---------------------------------------------------------------------+-------------------+
  16. | :ref:`PoolByteArray<class_PoolByteArray>` | :ref:`data<class_AudioStreamOGGVorbis_property_data>` | PoolByteArray( ) |
  17. +-------------------------------------------+---------------------------------------------------------------------+-------------------+
  18. | :ref:`bool<class_bool>` | :ref:`loop<class_AudioStreamOGGVorbis_property_loop>` | false |
  19. +-------------------------------------------+---------------------------------------------------------------------+-------------------+
  20. | :ref:`float<class_float>` | :ref:`loop_offset<class_AudioStreamOGGVorbis_property_loop_offset>` | 0.0 |
  21. +-------------------------------------------+---------------------------------------------------------------------+-------------------+
  22. Property Descriptions
  23. ---------------------
  24. .. _class_AudioStreamOGGVorbis_property_data:
  25. - :ref:`PoolByteArray<class_PoolByteArray>` **data**
  26. +-----------+-------------------+
  27. | *Default* | PoolByteArray( ) |
  28. +-----------+-------------------+
  29. | *Setter* | set_data(value) |
  30. +-----------+-------------------+
  31. | *Getter* | get_data() |
  32. +-----------+-------------------+
  33. Contains the audio data in bytes.
  34. ----
  35. .. _class_AudioStreamOGGVorbis_property_loop:
  36. - :ref:`bool<class_bool>` **loop**
  37. +-----------+-----------------+
  38. | *Default* | false |
  39. +-----------+-----------------+
  40. | *Setter* | set_loop(value) |
  41. +-----------+-----------------+
  42. | *Getter* | has_loop() |
  43. +-----------+-----------------+
  44. If ``true``, the stream will automatically loop when it reaches the end.
  45. ----
  46. .. _class_AudioStreamOGGVorbis_property_loop_offset:
  47. - :ref:`float<class_float>` **loop_offset**
  48. +-----------+------------------------+
  49. | *Default* | 0.0 |
  50. +-----------+------------------------+
  51. | *Setter* | set_loop_offset(value) |
  52. +-----------+------------------------+
  53. | *Getter* | get_loop_offset() |
  54. +-----------+------------------------+
  55. Time in seconds at which the stream starts after being looped.