diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-12-10 10:46:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 10:46:24 +0100 |
commit | c9ea6caac827ea00f972989318a4e92caa149291 (patch) | |
tree | 33436aab8c12dba303de503f69a6cf4dad529bd3 /doc/classes | |
parent | 879499a0aa2ade91a03bf6fb6c8904ee636f6a9e (diff) | |
parent | 35d788cff5074475c210c8f434e4671089ae4d2f (diff) | |
download | redot-engine-c9ea6caac827ea00f972989318a4e92caa149291.tar.gz |
Merge pull request #69831 from Calinou/audio-random-no-repeats-remove-warning
Remove warning when playing random no-repeat sound with only 1 sound in pool
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/AudioStreamRandomizer.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/classes/AudioStreamRandomizer.xml b/doc/classes/AudioStreamRandomizer.xml index 5490770b7d..9b58d78af5 100644 --- a/doc/classes/AudioStreamRandomizer.xml +++ b/doc/classes/AudioStreamRandomizer.xml @@ -78,13 +78,13 @@ </members> <constants> <constant name="PLAYBACK_RANDOM_NO_REPEATS" value="0" enum="PlaybackMode"> - Pick a stream at random according to the probability weights chosen for each stream, but avoid playing the same stream twice in a row whenever possible. + Pick a stream at random according to the probability weights chosen for each stream, but avoid playing the same stream twice in a row whenever possible. If only 1 sound is present in the pool, the same sound will always play, effectively allowing repeats to occur. </constant> <constant name="PLAYBACK_RANDOM" value="1" enum="PlaybackMode"> - Pick a stream at random according to the probability weights chosen for each stream. + Pick a stream at random according to the probability weights chosen for each stream. If only 1 sound is present in the pool, the same sound will always play. </constant> <constant name="PLAYBACK_SEQUENTIAL" value="2" enum="PlaybackMode"> - Play streams in the order they appear in the stream pool. + Play streams in the order they appear in the stream pool. If only 1 sound is present in the pool, the same sound will always play. </constant> </constants> </class> |