updated AudioStream docs and added AudioServer docs
This commit is contained in:
parent
18d3ba0c50
commit
3ac7cc9e57
6 changed files with 55 additions and 6 deletions
|
@ -1,8 +1,10 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="AudioBusLayout" inherits="Resource" category="Core" version="3.0.alpha.custom_build">
|
<class name="AudioBusLayout" inherits="Resource" category="Core" version="3.0.alpha.custom_build">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
|
Stores information about the audiobusses.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
|
Stores position, muting, solo, bypass, effects, effect position, volume, and the connections between busses. See [AudioServer] for usage.
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<argument index="0" name="at_position" type="int" default="-1">
|
<argument index="0" name="at_position" type="int" default="-1">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Adds a bus at [code]at_position[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="add_bus_effect">
|
<method name="add_bus_effect">
|
||||||
|
@ -29,18 +30,21 @@
|
||||||
<argument index="2" name="at_position" type="int" default="-1">
|
<argument index="2" name="at_position" type="int" default="-1">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Adds an [AudioEffect] effect to the bus [code]bus_idx[/code] at [code]at_position[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="generate_bus_layout" qualifiers="const">
|
<method name="generate_bus_layout" qualifiers="const">
|
||||||
<return type="AudioBusLayout">
|
<return type="AudioBusLayout">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Generates an [AudioBusLayout] using the available busses and effects.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_bus_count" qualifiers="const">
|
<method name="get_bus_count" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the number of available busses.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_bus_effect">
|
<method name="get_bus_effect">
|
||||||
|
@ -51,6 +55,7 @@
|
||||||
<argument index="1" name="effect_idx" type="int">
|
<argument index="1" name="effect_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the [AudioEffect] at position [code]effect_idx[/code] in bus [code]bus_idx[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_bus_effect_count">
|
<method name="get_bus_effect_count">
|
||||||
|
@ -59,6 +64,7 @@
|
||||||
<argument index="0" name="bus_idx" type="int">
|
<argument index="0" name="bus_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the number of effects on the bus at [code]bus_idx[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_bus_index" qualifiers="const">
|
<method name="get_bus_index" qualifiers="const">
|
||||||
|
@ -67,6 +73,7 @@
|
||||||
<argument index="0" name="bus_name" type="String">
|
<argument index="0" name="bus_name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the index of the bus with the name [code]bus_name[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_bus_name" qualifiers="const">
|
<method name="get_bus_name" qualifiers="const">
|
||||||
|
@ -75,6 +82,7 @@
|
||||||
<argument index="0" name="bus_idx" type="int">
|
<argument index="0" name="bus_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the name of the bus with the index [code]bus_idx[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_bus_peak_volume_left_db" qualifiers="const">
|
<method name="get_bus_peak_volume_left_db" qualifiers="const">
|
||||||
|
@ -85,6 +93,7 @@
|
||||||
<argument index="1" name="channel" type="int">
|
<argument index="1" name="channel" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the peak volume of the left speaker at bus index [code]bus_idx[/code] and channel index [code]channel[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_bus_peak_volume_right_db" qualifiers="const">
|
<method name="get_bus_peak_volume_right_db" qualifiers="const">
|
||||||
|
@ -95,6 +104,7 @@
|
||||||
<argument index="1" name="channel" type="int">
|
<argument index="1" name="channel" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the peak volume of the right speaker at bus index [code]bus_idx[/code] and channel index [code]channel[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_bus_send" qualifiers="const">
|
<method name="get_bus_send" qualifiers="const">
|
||||||
|
@ -103,6 +113,7 @@
|
||||||
<argument index="0" name="bus_idx" type="int">
|
<argument index="0" name="bus_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the name of the bus that the bus at index [code]bus_idx[/code] sends to.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_bus_volume_db" qualifiers="const">
|
<method name="get_bus_volume_db" qualifiers="const">
|
||||||
|
@ -111,18 +122,21 @@
|
||||||
<argument index="0" name="bus_idx" type="int">
|
<argument index="0" name="bus_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the volume of the bus at index [code]bus_idx[/code] in dB.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_mix_rate" qualifiers="const">
|
<method name="get_mix_rate" qualifiers="const">
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the sample rate at the output of the audioserver.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_speaker_mode" qualifiers="const">
|
<method name="get_speaker_mode" qualifiers="const">
|
||||||
<return type="int" enum="AudioServer.SpeakerMode">
|
<return type="int" enum="AudioServer.SpeakerMode">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the speaker configuration.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_bus_bypassing_effects" qualifiers="const">
|
<method name="is_bus_bypassing_effects" qualifiers="const">
|
||||||
|
@ -131,6 +145,7 @@
|
||||||
<argument index="0" name="bus_idx" type="int">
|
<argument index="0" name="bus_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
If [code]true[/code] the bus at index [code]bus_idx[/code] is bypassing effects.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_bus_effect_enabled" qualifiers="const">
|
<method name="is_bus_effect_enabled" qualifiers="const">
|
||||||
|
@ -141,6 +156,7 @@
|
||||||
<argument index="1" name="effect_idx" type="int">
|
<argument index="1" name="effect_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
If [code]true[/code] the effect at index [code]effect_idx[/code] on the bus at index [code]bus_idx[/code] is enabled.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_bus_mute" qualifiers="const">
|
<method name="is_bus_mute" qualifiers="const">
|
||||||
|
@ -149,6 +165,7 @@
|
||||||
<argument index="0" name="bus_idx" type="int">
|
<argument index="0" name="bus_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
If [code]true[/code] the bus at index [code]bus_idx[/code] is muted.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_bus_solo" qualifiers="const">
|
<method name="is_bus_solo" qualifiers="const">
|
||||||
|
@ -157,12 +174,14 @@
|
||||||
<argument index="0" name="bus_idx" type="int">
|
<argument index="0" name="bus_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
If [code]true[/code] the bus at index [code]bus_idx[/code] is in solo mode.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="lock">
|
<method name="lock">
|
||||||
<return type="void">
|
<return type="void">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Locks the audio drivers mainloop. Remember to unlock it afterwards.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="move_bus">
|
<method name="move_bus">
|
||||||
|
@ -173,6 +192,7 @@
|
||||||
<argument index="1" name="to_index" type="int">
|
<argument index="1" name="to_index" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Moves the bus from index [code]index[/code] to index [code]to_index[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="remove_bus">
|
<method name="remove_bus">
|
||||||
|
@ -181,6 +201,7 @@
|
||||||
<argument index="0" name="index" type="int">
|
<argument index="0" name="index" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Removes the bus at index [code]index[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="remove_bus_effect">
|
<method name="remove_bus_effect">
|
||||||
|
@ -191,6 +212,7 @@
|
||||||
<argument index="1" name="effect_idx" type="int">
|
<argument index="1" name="effect_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Removes the effect at index [code]effect_idx[/code] from the bus at index [code]bus_idx[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_bypass_effects">
|
<method name="set_bus_bypass_effects">
|
||||||
|
@ -201,6 +223,7 @@
|
||||||
<argument index="1" name="enable" type="bool">
|
<argument index="1" name="enable" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
If [code]true[/code] the bus at index [code]bus_idx[/code] is bypassing effects.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_count">
|
<method name="set_bus_count">
|
||||||
|
@ -209,6 +232,7 @@
|
||||||
<argument index="0" name="amount" type="int">
|
<argument index="0" name="amount" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Adds and removes busses to make the number of busses match [code]amount[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_effect_enabled">
|
<method name="set_bus_effect_enabled">
|
||||||
|
@ -221,6 +245,7 @@
|
||||||
<argument index="2" name="enabled" type="bool">
|
<argument index="2" name="enabled" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
If [code]true[/code] the effect at index [code]effect_idx[/code] on the bus at index [code]bus_idx[/code] is enabled.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_layout">
|
<method name="set_bus_layout">
|
||||||
|
@ -229,6 +254,7 @@
|
||||||
<argument index="0" name="bus_layout" type="AudioBusLayout">
|
<argument index="0" name="bus_layout" type="AudioBusLayout">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Overwrites the currently used [AudioBusLayout].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_mute">
|
<method name="set_bus_mute">
|
||||||
|
@ -239,6 +265,7 @@
|
||||||
<argument index="1" name="enable" type="bool">
|
<argument index="1" name="enable" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
If [code]true[/code] the bus at index [code]bus_idx[/code] is muted.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_name">
|
<method name="set_bus_name">
|
||||||
|
@ -249,6 +276,7 @@
|
||||||
<argument index="1" name="name" type="String">
|
<argument index="1" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets the name of the bus at index [code]bus_idx[/code] to [code]name[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_send">
|
<method name="set_bus_send">
|
||||||
|
@ -259,6 +287,7 @@
|
||||||
<argument index="1" name="send" type="String">
|
<argument index="1" name="send" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Connects the output of the bus at [code]bus_idx[/code] to the bus named [code]send[/send].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_solo">
|
<method name="set_bus_solo">
|
||||||
|
@ -269,6 +298,7 @@
|
||||||
<argument index="1" name="enable" type="bool">
|
<argument index="1" name="enable" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
If [code]true[/code] the bus at index [code]bus_idx[/code] is in solo mode.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_volume_db">
|
<method name="set_bus_volume_db">
|
||||||
|
@ -279,6 +309,7 @@
|
||||||
<argument index="1" name="volume_db" type="float">
|
<argument index="1" name="volume_db" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets the volume of the bus at index [code]bus_idx[/code] to [code]volume_db[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="swap_bus_effects">
|
<method name="swap_bus_effects">
|
||||||
|
@ -291,27 +322,33 @@
|
||||||
<argument index="2" name="by_effect_idx" type="int">
|
<argument index="2" name="by_effect_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Swaps the position of two effects in bus [code]bus_idx[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="unlock">
|
<method name="unlock">
|
||||||
<return type="void">
|
<return type="void">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Unlocks the audiodriver's main loop. After locking it always unlock it.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
<signals>
|
<signals>
|
||||||
<signal name="bus_layout_changed">
|
<signal name="bus_layout_changed">
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when the [AudioBusLayout] changes.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
</signals>
|
</signals>
|
||||||
<constants>
|
<constants>
|
||||||
<constant name="SPEAKER_MODE_STEREO" value="0">
|
<constant name="SPEAKER_MODE_STEREO" value="0">
|
||||||
|
Two or fewer speakers are detected.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="SPEAKER_SURROUND_51" value="2">
|
<constant name="SPEAKER_SURROUND_51" value="2">
|
||||||
|
A 5.1 channel surround setup detected.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="SPEAKER_SURROUND_71" value="3">
|
<constant name="SPEAKER_SURROUND_71" value="3">
|
||||||
|
A 7.1 channel surround setup detected.
|
||||||
</constant>
|
</constant>
|
||||||
</constants>
|
</constants>
|
||||||
</class>
|
</class>
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="AudioStreamPlayback" inherits="Reference" category="Core" version="3.0.alpha.custom_build">
|
<class name="AudioStreamPlayback" inherits="Reference" category="Core" version="3.0.alpha.custom_build">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
|
Meta class for playing back audio.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
|
Can play, loop, pause a scroll through Audio. See [AudioStream] and [AudioStreamOGGVorbis] for usage.
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
Plays background audio.
|
Plays background audio.
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
|
http://docs.godotengine.org/en/latest/learning/features/audio/index.html
|
||||||
</tutorials>
|
</tutorials>
|
||||||
<demos>
|
<demos>
|
||||||
</demos>
|
</demos>
|
||||||
|
@ -27,6 +28,7 @@
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the position in the [AudioStream].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_stream" qualifiers="const">
|
<method name="get_stream" qualifiers="const">
|
||||||
|
@ -121,15 +123,16 @@
|
||||||
</methods>
|
</methods>
|
||||||
<members>
|
<members>
|
||||||
<member name="autoplay" type="bool" setter="set_autoplay" getter="is_autoplay_enabled">
|
<member name="autoplay" type="bool" setter="set_autoplay" getter="is_autoplay_enabled">
|
||||||
If [code]true[/code], audio plays when added to scene tree. Default value: [code]false[/code].
|
If [code]true[/code] audio plays when added to scene tree. Default value: [code]false[/code].
|
||||||
</member>
|
</member>
|
||||||
<member name="bus" type="String" setter="set_bus" getter="get_bus">
|
<member name="bus" type="String" setter="set_bus" getter="get_bus">
|
||||||
Bus on which this audio is playing.
|
Bus on which this audio is playing.
|
||||||
</member>
|
</member>
|
||||||
<member name="mix_target" type="int" setter="set_mix_target" getter="get_mix_target" enum="AudioStreamPlayer.MixTarget">
|
<member name="mix_target" type="int" setter="set_mix_target" getter="get_mix_target" enum="AudioStreamPlayer.MixTarget">
|
||||||
|
If the audio configuration has more than two speakers, this sets the target channels. See [code]MIX_TARGET_*[/code] constants.
|
||||||
</member>
|
</member>
|
||||||
<member name="playing" type="bool" setter="_set_playing" getter="is_playing">
|
<member name="playing" type="bool" setter="_set_playing" getter="is_playing">
|
||||||
If [code]true[/code], audio is playing.
|
If [code]true[/code] audio is playing.
|
||||||
</member>
|
</member>
|
||||||
<member name="stream" type="AudioStream" setter="set_stream" getter="get_stream">
|
<member name="stream" type="AudioStream" setter="set_stream" getter="get_stream">
|
||||||
The [AudioStream] object to be played.
|
The [AudioStream] object to be played.
|
||||||
|
@ -147,10 +150,13 @@
|
||||||
</signals>
|
</signals>
|
||||||
<constants>
|
<constants>
|
||||||
<constant name="MIX_TARGET_STEREO" value="0">
|
<constant name="MIX_TARGET_STEREO" value="0">
|
||||||
|
The audio will be played only on the first channel.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="MIX_TARGET_SURROUND" value="1">
|
<constant name="MIX_TARGET_SURROUND" value="1">
|
||||||
|
The audio will be played on all surround channels.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="MIX_TARGET_CENTER" value="2">
|
<constant name="MIX_TARGET_CENTER" value="2">
|
||||||
|
The audio will be played on the second channel, which is usually the center.
|
||||||
</constant>
|
</constant>
|
||||||
</constants>
|
</constants>
|
||||||
</class>
|
</class>
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the position in the [AudioStream].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_stream" qualifiers="const">
|
<method name="get_stream" qualifiers="const">
|
||||||
|
@ -156,7 +157,7 @@
|
||||||
Dampens audio over distance with this as an exponent.
|
Dampens audio over distance with this as an exponent.
|
||||||
</member>
|
</member>
|
||||||
<member name="autoplay" type="bool" setter="set_autoplay" getter="is_autoplay_enabled">
|
<member name="autoplay" type="bool" setter="set_autoplay" getter="is_autoplay_enabled">
|
||||||
If [code]true[/code], audio plays when added to scene tree. Default value: [code]false[/code].
|
If [code]true[/code] audio plays when added to scene tree. Default value: [code]false[/code].
|
||||||
</member>
|
</member>
|
||||||
<member name="bus" type="String" setter="set_bus" getter="get_bus">
|
<member name="bus" type="String" setter="set_bus" getter="get_bus">
|
||||||
Bus on which this audio is playing.
|
Bus on which this audio is playing.
|
||||||
|
@ -165,7 +166,7 @@
|
||||||
Maximum distance from which audio is still hearable.
|
Maximum distance from which audio is still hearable.
|
||||||
</member>
|
</member>
|
||||||
<member name="playing" type="bool" setter="_set_playing" getter="is_playing">
|
<member name="playing" type="bool" setter="_set_playing" getter="is_playing">
|
||||||
If [code]true[/code], audio is playing.
|
If [code]true[/code] audio is playing.
|
||||||
</member>
|
</member>
|
||||||
<member name="stream" type="AudioStream" setter="set_stream" getter="get_stream">
|
<member name="stream" type="AudioStream" setter="set_stream" getter="get_stream">
|
||||||
The [AudioStream] object to be played.
|
The [AudioStream] object to be played.
|
||||||
|
|
|
@ -82,6 +82,7 @@
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the position in the [AudioStream].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_stream" qualifiers="const">
|
<method name="get_stream" qualifiers="const">
|
||||||
|
@ -288,7 +289,7 @@
|
||||||
Decides if audio should get quieter with distance linearly, quadratically or logarithmically.
|
Decides if audio should get quieter with distance linearly, quadratically or logarithmically.
|
||||||
</member>
|
</member>
|
||||||
<member name="autoplay" type="bool" setter="set_autoplay" getter="is_autoplay_enabled">
|
<member name="autoplay" type="bool" setter="set_autoplay" getter="is_autoplay_enabled">
|
||||||
If [code]true[/code], audio plays audio plays when added to scene tree. Default value: [code]false[/code].
|
If [code]true[/code] audio plays when added to scene tree. Default value: [code]false[/code].
|
||||||
</member>
|
</member>
|
||||||
<member name="bus" type="String" setter="set_bus" getter="get_bus">
|
<member name="bus" type="String" setter="set_bus" getter="get_bus">
|
||||||
Bus on which this audio is playing.
|
Bus on which this audio is playing.
|
||||||
|
@ -300,7 +301,7 @@
|
||||||
The angle in which the audio reaches cameras undampened.
|
The angle in which the audio reaches cameras undampened.
|
||||||
</member>
|
</member>
|
||||||
<member name="emission_angle_enabled" type="bool" setter="set_emission_angle_enabled" getter="is_emission_angle_enabled">
|
<member name="emission_angle_enabled" type="bool" setter="set_emission_angle_enabled" getter="is_emission_angle_enabled">
|
||||||
If [code]true[/code], the audio should be dampened according to the direction of the sound.
|
If [code]true[/code] the audio should be dampened according to the direction of the sound.
|
||||||
</member>
|
</member>
|
||||||
<member name="emission_angle_filter_attenuation_db" type="float" setter="set_emission_angle_filter_attenuation_db" getter="get_emission_angle_filter_attenuation_db">
|
<member name="emission_angle_filter_attenuation_db" type="float" setter="set_emission_angle_filter_attenuation_db" getter="get_emission_angle_filter_attenuation_db">
|
||||||
dampens audio if camera is outside of 'emission_angle_degrees' and 'emission_angle_enabled' is set by this factor, in dB.
|
dampens audio if camera is outside of 'emission_angle_degrees' and 'emission_angle_enabled' is set by this factor, in dB.
|
||||||
|
|
Loading…
Reference in a new issue