summaryrefslogtreecommitdiff
path: root/doc/classes/AudioStreamRandomizer.xml
diff options
context:
space:
mode:
authorMrBlockers <1747505+MrBlockers@users.noreply.github.com>2022-10-26 17:54:31 -0400
committerMrBlockers <1747505+MrBlockers@users.noreply.github.com>2022-12-20 18:48:02 -0500
commit569ead5762cbd8cec1e615e564a62d1fac1aec1d (patch)
treecfa5631a28d306371cc9f22cfbee06255f14ae63 /doc/classes/AudioStreamRandomizer.xml
parent2a04b18d37de6c6e621db5a9dfd1cd0da5ccb015 (diff)
Add optional arguments to AudioStreamRandomizer
Adds stream and weight parameters to add_stream. By default, weight is 1.0f.
Diffstat (limited to 'doc/classes/AudioStreamRandomizer.xml')
-rw-r--r--doc/classes/AudioStreamRandomizer.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/classes/AudioStreamRandomizer.xml b/doc/classes/AudioStreamRandomizer.xml
index 9b58d78af5..d93f853c89 100644
--- a/doc/classes/AudioStreamRandomizer.xml
+++ b/doc/classes/AudioStreamRandomizer.xml
@@ -12,8 +12,10 @@
<method name="add_stream">
<return type="void" />
<param index="0" name="index" type="int" />
+ <param index="1" name="stream" type="AudioStream" />
+ <param index="2" name="weight" type="float" default="1.0" />
<description>
- Insert a stream at the specified index.
+ Insert a stream at the specified index. If the index is less than zero, the insertion occurs at the end of the underlying pool.
</description>
</method>
<method name="get_stream" qualifiers="const">