W3cubDocs

/Godot 4.2

OggPacketSequence

Inherits: Resource < RefCounted < Object

A sequence of Ogg packets.

Description

A sequence of Ogg packets.

Properties

PackedInt64Array

granule_positions

PackedInt64Array()

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.

Array[] packet_data = []

Contains the raw packets that make up this OggPacketSequence.

float sampling_rate = 0.0

  • void set_sampling_rate ( float value )
  • 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.

© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_oggpacketsequence.html