Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
AudioStreamOggVorbis¶
Inherits: AudioStream < Resource < RefCounted < Object
A class representing an Ogg Vorbis audio stream.
描述¶
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.
属性¶
|
||
|
||
|
||
|
||
|
||
Methods¶
load_from_buffer ( PackedByteArray buffer ) static |
|
load_from_file ( String path ) static |
Property Descriptions¶
int bar_beats = 4
There is currently no description for this property. Please help us by contributing one!
int beat_count = 0
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
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
Time in seconds at which the stream starts after being looped.
OggPacketSequence packet_sequence
void set_packet_sequence ( OggPacketSequence value )
OggPacketSequence get_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.