summaryrefslogtreecommitdiff
path: root/doc/classes/AudioStreamPlayer2D.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/AudioStreamPlayer2D.xml')
-rw-r--r--doc/classes/AudioStreamPlayer2D.xml24
1 files changed, 10 insertions, 14 deletions
diff --git a/doc/classes/AudioStreamPlayer2D.xml b/doc/classes/AudioStreamPlayer2D.xml
index b1e18ab550..e36a428499 100644
--- a/doc/classes/AudioStreamPlayer2D.xml
+++ b/doc/classes/AudioStreamPlayer2D.xml
@@ -13,40 +13,33 @@
</tutorials>
<methods>
<method name="get_playback_position">
- <return type="float">
- </return>
+ <return type="float" />
<description>
Returns the position in the [AudioStream].
</description>
</method>
<method name="get_stream_playback">
- <return type="AudioStreamPlayback">
- </return>
+ <return type="AudioStreamPlayback" />
<description>
Returns the [AudioStreamPlayback] object associated with this [AudioStreamPlayer2D].
</description>
</method>
<method name="play">
- <return type="void">
- </return>
- <argument index="0" name="from_position" type="float" default="0.0">
- </argument>
+ <return type="void" />
+ <argument index="0" name="from_position" type="float" default="0.0" />
<description>
Plays the audio from the given position [code]from_position[/code], in seconds.
</description>
</method>
<method name="seek">
- <return type="void">
- </return>
- <argument index="0" name="to_position" type="float">
- </argument>
+ <return type="void" />
+ <argument index="0" name="to_position" type="float" />
<description>
Sets the position from which audio will be played, in seconds.
</description>
</method>
<method name="stop">
- <return type="void">
- </return>
+ <return type="void" />
<description>
Stops the audio.
</description>
@@ -68,6 +61,9 @@
<member name="max_distance" type="float" setter="set_max_distance" getter="get_max_distance" default="2000.0">
Maximum distance from which audio is still hearable.
</member>
+ <member name="max_polyphony" type="int" setter="set_max_polyphony" getter="get_max_polyphony" default="1">
+ The maximum number of sounds this node can play at the same time. Playing additional sounds after this value is reached will cut off the oldest sounds.
+ </member>
<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale" default="1.0">
The pitch and the tempo of the audio, as a multiplier of the audio sample's sample rate.
</member>