:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/4.3/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/4.3/modules/ogg/doc_classes/OggPacketSequence.xml. .. _class_OggPacketSequence: OggPacketSequence ================= **Inherits:** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` A sequence of Ogg packets. .. rst-class:: classref-introduction-group Description ----------- A sequence of Ogg packets. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +--------------------------------------------------------+------------------------------------------------------------------------------+------------------------+ | :ref:`PackedInt64Array` | :ref:`granule_positions` | ``PackedInt64Array()`` | +--------------------------------------------------------+------------------------------------------------------------------------------+------------------------+ | :ref:`Array`\[:ref:`Array`\] | :ref:`packet_data` | ``[]`` | +--------------------------------------------------------+------------------------------------------------------------------------------+------------------------+ | :ref:`float` | :ref:`sampling_rate` | ``0.0`` | +--------------------------------------------------------+------------------------------------------------------------------------------+------------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +---------------------------+----------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_length`\ (\ ) |const| | +---------------------------+----------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_OggPacketSequence_property_granule_positions: .. rst-class:: classref-property :ref:`PackedInt64Array` **granule_positions** = ``PackedInt64Array()`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_packet_granule_positions**\ (\ value\: :ref:`PackedInt64Array`\ ) - :ref:`PackedInt64Array` **get_packet_granule_positions**\ (\ ) Contains the granule positions for each page in this packet sequence. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedInt64Array` for more details. .. rst-class:: classref-item-separator ---- .. _class_OggPacketSequence_property_packet_data: .. rst-class:: classref-property :ref:`Array`\[:ref:`Array`\] **packet_data** = ``[]`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_packet_data**\ (\ value\: :ref:`Array`\[:ref:`Array`\]\ ) - :ref:`Array`\[:ref:`Array`\] **get_packet_data**\ (\ ) Contains the raw packets that make up this OggPacketSequence. .. rst-class:: classref-item-separator ---- .. _class_OggPacketSequence_property_sampling_rate: .. rst-class:: classref-property :ref:`float` **sampling_rate** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_sampling_rate**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_sampling_rate**\ (\ ) Holds sample rate information about this sequence. Must be set by another class that actually understands the codec. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_OggPacketSequence_method_get_length: .. rst-class:: classref-method :ref:`float` **get_length**\ (\ ) |const| :ref:`🔗` The length of this stream, in seconds. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`