mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
104 lines
4.4 KiB
ReStructuredText
104 lines
4.4 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. DO NOT EDIT THIS FILE!!!
|
|
.. Generated automatically from Godot engine sources.
|
|
.. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
|
|
.. XML source: https://github.com/godotengine/godot/tree/master/modules/ogg/doc_classes/OggPacketSequence.xml.
|
|
|
|
.. _class_OggPacketSequence:
|
|
|
|
OggPacketSequence
|
|
=================
|
|
|
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
|
|
|
A sequence of Ogg packets.
|
|
|
|
Description
|
|
-----------
|
|
|
|
A sequence of Ogg packets.
|
|
|
|
Properties
|
|
----------
|
|
|
|
+-------------------------------------------------+------------------------------------------------------------------------------+------------------------+
|
|
| :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`granule_positions<class_OggPacketSequence_property_granule_positions>` | ``PackedInt64Array()`` |
|
|
+-------------------------------------------------+------------------------------------------------------------------------------+------------------------+
|
|
| :ref:`Array[]<class_Array>` | :ref:`packet_data<class_OggPacketSequence_property_packet_data>` | ``[]`` |
|
|
+-------------------------------------------------+------------------------------------------------------------------------------+------------------------+
|
|
| :ref:`float<class_float>` | :ref:`sampling_rate<class_OggPacketSequence_property_sampling_rate>` | ``0.0`` |
|
|
+-------------------------------------------------+------------------------------------------------------------------------------+------------------------+
|
|
|
|
Methods
|
|
-------
|
|
|
|
+---------------------------+----------------------------------------------------------------------------------+
|
|
| :ref:`float<class_float>` | :ref:`get_length<class_OggPacketSequence_method_get_length>` **(** **)** |const| |
|
|
+---------------------------+----------------------------------------------------------------------------------+
|
|
|
|
Property Descriptions
|
|
---------------------
|
|
|
|
.. _class_OggPacketSequence_property_granule_positions:
|
|
|
|
- :ref:`PackedInt64Array<class_PackedInt64Array>` **granule_positions**
|
|
|
|
+-----------+-------------------------------------+
|
|
| *Default* | ``PackedInt64Array()`` |
|
|
+-----------+-------------------------------------+
|
|
| *Setter* | set_packet_granule_positions(value) |
|
|
+-----------+-------------------------------------+
|
|
| *Getter* | get_packet_granule_positions() |
|
|
+-----------+-------------------------------------+
|
|
|
|
Contains the granule positions for each page in this packet sequence.
|
|
|
|
----
|
|
|
|
.. _class_OggPacketSequence_property_packet_data:
|
|
|
|
- :ref:`Array[]<class_Array>` **packet_data**
|
|
|
|
+-----------+------------------------+
|
|
| *Default* | ``[]`` |
|
|
+-----------+------------------------+
|
|
| *Setter* | set_packet_data(value) |
|
|
+-----------+------------------------+
|
|
| *Getter* | get_packet_data() |
|
|
+-----------+------------------------+
|
|
|
|
Contains the raw packets that make up this OggPacketSequence.
|
|
|
|
----
|
|
|
|
.. _class_OggPacketSequence_property_sampling_rate:
|
|
|
|
- :ref:`float<class_float>` **sampling_rate**
|
|
|
|
+-----------+--------------------------+
|
|
| *Default* | ``0.0`` |
|
|
+-----------+--------------------------+
|
|
| *Setter* | set_sampling_rate(value) |
|
|
+-----------+--------------------------+
|
|
| *Getter* | get_sampling_rate() |
|
|
+-----------+--------------------------+
|
|
|
|
Holds sample rate information about this sequence. Must be set by another class that actually understands the codec.
|
|
|
|
Method Descriptions
|
|
-------------------
|
|
|
|
.. _class_OggPacketSequence_method_get_length:
|
|
|
|
- :ref:`float<class_float>` **get_length** **(** **)** |const|
|
|
|
|
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.)`
|