AudioStreamOggVorbis

Inherits: AudioStream < Resource < RefCounted < Object

A class representing an Ogg Vorbis audio stream.

Description

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.

Tutorials

Properties

int

bar_beats

4

int

beat_count

0

float

bpm

0.0

bool

loop

false

float

loop_offset

0.0

OggPacketSequence

packet_sequence

Methods

AudioStreamOggVorbis

load_from_buffer ( PackedByteArray buffer ) static

AudioStreamOggVorbis

load_from_file ( String path ) static


Property Descriptions

int bar_beats = 4

  • void set_bar_beats ( int value )

  • 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 ( int value )

  • 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 ( bool value )

  • bool has_loop ( )

If true, the audio will play again from the specified loop_offset once it is done playing. Useful for ambient sounds and background music.


float loop_offset = 0.0

  • void set_loop_offset ( float value )

  • float get_loop_offset ( )

Time in seconds at which the stream starts after being looped.


OggPacketSequence packet_sequence

Contains the raw Ogg data for this stream.


Method Descriptions

AudioStreamOggVorbis load_from_buffer ( PackedByteArray buffer ) static

Creates a new AudioStreamOggVorbis instance from the given buffer. The buffer must contain Ogg Vorbis data.


AudioStreamOggVorbis load_from_file ( String path ) static

Creates a new AudioStreamOggVorbis instance from the given file path. The file must be in Ogg Vorbis format.

Previous Next


© Copyright 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision 53e837c6.

Built with Sphinx using a theme provided by Read the Docs.