AudioStreamOggVorbis

Hereda: AudioStream < Resource < RefCounted < Object

Una clase que representa una secuencia de audio Ogg Vorbis.

Descripción

The AudioStreamOggVorbis class is a specialized AudioStream for handling Ogg Vorbis file formats. It offers functionality for loading and playing back Ogg Vorbis files, as well as managing looping and other playback properties. This class is part of the audio stream system, which also supports WAV files through the AudioStreamWAV class.

Tutoriales

Propiedades

int

bar_beats

4

int

beat_count

0

float

bpm

0.0

bool

loop

false

float

loop_offset

0.0

OggPacketSequence

packet_sequence

Dictionary

tags

{}

Métodos

AudioStreamOggVorbis

load_from_buffer(stream_data: PackedByteArray) static

AudioStreamOggVorbis

load_from_file(path: String) static


Descripciones de Propiedades

int bar_beats = 4 🔗

  • void set_bar_beats(value: int)

  • int get_bar_beats()

There is currently no description for this property. Please help us by contributing one!


int beat_count = 0 🔗

  • void set_beat_count(value: int)

  • int get_beat_count()

There is currently no description for this property. Please help us by contributing one!


float bpm = 0.0 🔗

There is currently no description for this property. Please help us by contributing one!


bool loop = false 🔗

  • void set_loop(value: bool)

  • bool has_loop()

Si es true, el audio se reproducirá de nuevo desde loop_offset especificado una vez finalizada la reproducción. Útil para sonidos ambientales y música de fondo.


float loop_offset = 0.0 🔗

  • void set_loop_offset(value: float)

  • float get_loop_offset()

Tiempo en segundos en el que el stream comienza después de ser enlazada.


OggPacketSequence packet_sequence 🔗

Contiene los datos Ogg sin procesar para esta transmisión.


Dictionary tags = {} 🔗

Contains user-defined tags if found in the Ogg Vorbis data.

Commonly used tags include title, artist, album, tracknumber, and date (date does not have a standard date format).

Note: No tag is guaranteed to be present in every file, so make sure to account for the keys not always existing.


Descripciones de Métodos

AudioStreamOggVorbis load_from_buffer(stream_data: PackedByteArray) static 🔗

Crea una nueva instancia de AudioStreamOggVorbis a partir del búfer especificado. El búfer debe contener datos Ogg Vorbis.


AudioStreamOggVorbis load_from_file(path: String) static 🔗

Crea una nueva instancia de AudioStreamOggVorbis a partir de la ruta de archivo indicada. El archivo debe estar en formato Ogg Vorbis.