38 lines
1.5 KiB
XML
38 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="ResourceImporterOggVorbis" inherits="ResourceImporter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
|
<brief_description>
|
|
</brief_description>
|
|
<description>
|
|
</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>
|
|
<member name="beat_count" type="int" setter="" getter="" default="0">
|
|
</member>
|
|
<member name="bpm" type="float" setter="" getter="" default="0">
|
|
</member>
|
|
<member name="loop" type="bool" setter="" getter="" default="false">
|
|
If [code]true[/code], the audio will play again from the specified [member loop_offset] once it is done playing. Useful for ambient sounds and background music.
|
|
</member>
|
|
<member name="loop_offset" type="float" setter="" getter="" default="0">
|
|
</member>
|
|
</members>
|
|
</class>
|