class_audiostreamoggvorbis.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the AudioStreamOGGVorbis.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_AudioStreamOGGVorbis:
  5. AudioStreamOGGVorbis
  6. ====================
  7. **Inherits:** :ref:`AudioStream<class_audiostream>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. OGG Vorbis audio stream driver.
  12. Member Functions
  13. ----------------
  14. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`PoolByteArray<class_poolbytearray>` | :ref:`get_data<class_AudioStreamOGGVorbis_get_data>` **(** **)** const |
  16. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`get_loop_offset<class_AudioStreamOGGVorbis_get_loop_offset>` **(** **)** const |
  18. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`bool<class_bool>` | :ref:`has_loop<class_AudioStreamOGGVorbis_has_loop>` **(** **)** const |
  20. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`set_data<class_AudioStreamOGGVorbis_set_data>` **(** :ref:`PoolByteArray<class_poolbytearray>` data **)** |
  22. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`set_loop<class_AudioStreamOGGVorbis_set_loop>` **(** :ref:`bool<class_bool>` enable **)** |
  24. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`set_loop_offset<class_AudioStreamOGGVorbis_set_loop_offset>` **(** :ref:`float<class_float>` seconds **)** |
  26. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------+
  27. Member Variables
  28. ----------------
  29. - :ref:`PoolByteArray<class_poolbytearray>` **data** - Raw audio data.
  30. - :ref:`bool<class_bool>` **loop** - If [code]true[/code], audio will loop continuously. Default value: [code]false[/code].
  31. - :ref:`float<class_float>` **loop_offset** - If loop is [code]true[/code], loop starts from this position, in seconds.
  32. Description
  33. -----------
  34. OGG Vorbis audio stream driver.
  35. Member Function Description
  36. ---------------------------
  37. .. _class_AudioStreamOGGVorbis_get_data:
  38. - :ref:`PoolByteArray<class_poolbytearray>` **get_data** **(** **)** const
  39. .. _class_AudioStreamOGGVorbis_get_loop_offset:
  40. - :ref:`float<class_float>` **get_loop_offset** **(** **)** const
  41. .. _class_AudioStreamOGGVorbis_has_loop:
  42. - :ref:`bool<class_bool>` **has_loop** **(** **)** const
  43. .. _class_AudioStreamOGGVorbis_set_data:
  44. - void **set_data** **(** :ref:`PoolByteArray<class_poolbytearray>` data **)**
  45. .. _class_AudioStreamOGGVorbis_set_loop:
  46. - void **set_loop** **(** :ref:`bool<class_bool>` enable **)**
  47. .. _class_AudioStreamOGGVorbis_set_loop_offset:
  48. - void **set_loop_offset** **(** :ref:`float<class_float>` seconds **)**