Wraps a pool of audio streams with pitch and volume shifting.
Picks a random AudioStream from the pool, depending on the playback mode, and applies random pitch shifting and volume shifting during playback.
Insert a stream at the specified index.
Returns the stream at the specified index.
Returns the probability weight associated with the stream at the given index.
Move a stream from one index to another.
Remove the stream at the specified index.
Set the AudioStream at the specified index.
Set the probability weight of the stream at the specified index. The higher this value, the more likely that the randomizer will choose this stream during random playback modes.
Controls how this AudioStreamRandomizer picks which AudioStream to play next.
The intensity of random pitch variation. A value of 1 means no variation.
The intensity of random volume variation. A value of 0 means no variation.
The number of streams in the stream pool.
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.
Play streams in the order they appear in the stream pool.