Load OGGs from file system
This commit is contained in:
committed by
K. S. Ernest (iFire) Lee
parent
a7583881af
commit
e391eae4b0
@ -1,11 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioStreamOggVorbis" inherits="AudioStream" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
||||
<brief_description>
|
||||
A class representing an Ogg Vorbis audio stream.
|
||||
</brief_description>
|
||||
<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.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="load_from_buffer" qualifiers="static">
|
||||
<return type="AudioStreamOggVorbis" />
|
||||
<param index="0" name="buffer" type="PackedByteArray" />
|
||||
<description>
|
||||
Creates a new AudioStreamOggVorbis instance from the given buffer. The buffer must contain Ogg Vorbis data.
|
||||
</description>
|
||||
</method>
|
||||
<method name="load_from_file" qualifiers="static">
|
||||
<return type="AudioStreamOggVorbis" />
|
||||
<param index="0" name="path" type="String" />
|
||||
<description>
|
||||
Creates a new AudioStreamOggVorbis instance from the given file path. The file must be in Ogg Vorbis format.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="bar_beats" type="int" setter="set_bar_beats" getter="get_bar_beats" default="4">
|
||||
</member>
|
||||
|
||||
@ -6,6 +6,22 @@
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="load_from_buffer" qualifiers="static">
|
||||
<return type="AudioStreamOggVorbis" />
|
||||
<param index="0" name="buffer" type="PackedByteArray" />
|
||||
<description>
|
||||
This method loads audio data from a PackedByteArray buffer into an AudioStreamOggVorbis object.
|
||||
</description>
|
||||
</method>
|
||||
<method name="load_from_file" qualifiers="static">
|
||||
<return type="AudioStreamOggVorbis" />
|
||||
<param index="0" name="path" type="String" />
|
||||
<description>
|
||||
This method loads audio data from a file into an AudioStreamOggVorbis object. The file path is provided as a string.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="bar_beats" type="int" setter="" getter="" default="4">
|
||||
</member>
|
||||
|
||||
Reference in New Issue
Block a user