class_oggpacketsequence.rst 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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/4.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/modules/ogg/doc_classes/OggPacketSequence.xml.
  6. .. _class_OggPacketSequence:
  7. OggPacketSequence
  8. =================
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A sequence of Ogg packets.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A sequence of Ogg packets.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------------------------+------------------------------------------------------------------------------+------------------------+
  21. | :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`granule_positions<class_OggPacketSequence_property_granule_positions>` | ``PackedInt64Array()`` |
  22. +-------------------------------------------------+------------------------------------------------------------------------------+------------------------+
  23. | :ref:`Array[]<class_Array>` | :ref:`packet_data<class_OggPacketSequence_property_packet_data>` | ``[]`` |
  24. +-------------------------------------------------+------------------------------------------------------------------------------+------------------------+
  25. | :ref:`float<class_float>` | :ref:`sampling_rate<class_OggPacketSequence_property_sampling_rate>` | ``0.0`` |
  26. +-------------------------------------------------+------------------------------------------------------------------------------+------------------------+
  27. .. rst-class:: classref-reftable-group
  28. Methods
  29. -------
  30. .. table::
  31. :widths: auto
  32. +---------------------------+----------------------------------------------------------------------------------+
  33. | :ref:`float<class_float>` | :ref:`get_length<class_OggPacketSequence_method_get_length>` **(** **)** |const| |
  34. +---------------------------+----------------------------------------------------------------------------------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Property Descriptions
  39. ---------------------
  40. .. _class_OggPacketSequence_property_granule_positions:
  41. .. rst-class:: classref-property
  42. :ref:`PackedInt64Array<class_PackedInt64Array>` **granule_positions** = ``PackedInt64Array()``
  43. .. rst-class:: classref-property-setget
  44. - void **set_packet_granule_positions** **(** :ref:`PackedInt64Array<class_PackedInt64Array>` value **)**
  45. - :ref:`PackedInt64Array<class_PackedInt64Array>` **get_packet_granule_positions** **(** **)**
  46. Contains the granule positions for each page in this packet sequence.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _class_OggPacketSequence_property_packet_data:
  50. .. rst-class:: classref-property
  51. :ref:`Array[]<class_Array>` **packet_data** = ``[]``
  52. .. rst-class:: classref-property-setget
  53. - void **set_packet_data** **(** :ref:`Array[]<class_Array>` value **)**
  54. - :ref:`Array[]<class_Array>` **get_packet_data** **(** **)**
  55. Contains the raw packets that make up this OggPacketSequence.
  56. .. rst-class:: classref-item-separator
  57. ----
  58. .. _class_OggPacketSequence_property_sampling_rate:
  59. .. rst-class:: classref-property
  60. :ref:`float<class_float>` **sampling_rate** = ``0.0``
  61. .. rst-class:: classref-property-setget
  62. - void **set_sampling_rate** **(** :ref:`float<class_float>` value **)**
  63. - :ref:`float<class_float>` **get_sampling_rate** **(** **)**
  64. Holds sample rate information about this sequence. Must be set by another class that actually understands the codec.
  65. .. rst-class:: classref-section-separator
  66. ----
  67. .. rst-class:: classref-descriptions-group
  68. Method Descriptions
  69. -------------------
  70. .. _class_OggPacketSequence_method_get_length:
  71. .. rst-class:: classref-method
  72. :ref:`float<class_float>` **get_length** **(** **)** |const|
  73. The length of this stream, in seconds.
  74. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  75. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  76. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  77. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  78. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  79. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`