summaryrefslogtreecommitdiff
path: root/doc/classes/AudioStreamPlayer.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/AudioStreamPlayer.xml')
-rw-r--r--doc/classes/AudioStreamPlayer.xml19
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/classes/AudioStreamPlayer.xml b/doc/classes/AudioStreamPlayer.xml
index e880fc1323..07d7c875db 100644
--- a/doc/classes/AudioStreamPlayer.xml
+++ b/doc/classes/AudioStreamPlayer.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<class name="AudioStreamPlayer" inherits="Node" category="Core" version="3.1">
+<class name="AudioStreamPlayer" inherits="Node" category="Core" version="3.2">
<brief_description>
Plays back audio.
</brief_description>
@@ -9,9 +9,16 @@
<tutorials>
<link>https://docs.godotengine.org/en/latest/tutorials/audio/audio_streams.html</link>
</tutorials>
- <demos>
- </demos>
<methods>
+ <method name="get_mix_time" qualifiers="const">
+ <return type="float">
+ </return>
+ <description>
+ Returns the actual amount of time this stream player was mixing since play() was pressed.
+ To know the exact position this song is mixing right now, add the value to [method AudioServer.get_time_since_last_mix].
+ Also consider substracting [method AudioServer.get_output_latency] to that result.
+ </description>
+ </method>
<method name="get_playback_position">
<return type="float">
</return>
@@ -19,6 +26,12 @@
Returns the position in the [AudioStream] in seconds.
</description>
</method>
+ <method name="get_stream_playback">
+ <return type="AudioStreamPlayback">
+ </return>
+ <description>
+ </description>
+ </method>
<method name="play">
<return type="void">
</return>