Outdated documentation

This documentation page refers to Godot 4.3, and may be outdated or incorrect.
Additionally, this engine version is no longer supported.

Check this page in the stable branch for the latest additions and corrections.

OggPacketSequence

Inherits: Resource < RefCounted < Object

A sequence of Ogg packets.

Description

A sequence of Ogg packets.

Properties

PackedInt64Array

granule_positions

PackedInt64Array()

Array[Array]

packet_data

[]

float

sampling_rate

0.0

Methods

float

get_length() const


Property Descriptions

PackedInt64Array granule_positions = PackedInt64Array() 🔗

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 PackedInt64Array for more details.


Array[Array] packet_data = [] 🔗

Contains the raw packets that make up this OggPacketSequence.


float sampling_rate = 0.0 🔗

  • void set_sampling_rate(value: float)

  • float get_sampling_rate()

Holds sample rate information about this sequence. Must be set by another class that actually understands the codec.


Method Descriptions

float get_length() const 🔗

The length of this stream, in seconds.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.