Description

When attempting to play random sounds using the 'Random' node within the audio editor, the 'Randomize Without Replacement' does not function as explained via the tooltip.

The options says that if you want to randomly choose between sounds to play, and not have any repeat their playback before the others sounds play at least once, check the 'Randomize Without Replacement'

I found that if I wanted to play three different sounds all one time, and at random, this function does not do what it says, but seems to still select any random sound that is connected to the input.

I have attached an image as an example for how to set up and test this issue. I made sure to set the weights for each sound within my 'Random' node to 1.0 so they are all evenly weighted during playback selection.

I have noticed that this issue is more noticeable with longer audio tracks like music or ambient sounds. Things like explosions and sound effects still have the issue occur, but not as frequently.

Steps to Reproduce

1. Create a new Blank BP Project with Starter Content
2. Create new 'Sound Cue' and add the same sounds waves as in the image provided.
3. Add a 'Random' node and be sure to have 'Randomize Without Replacement' checked.
4. Add a 'Looping' node and select the 'Loop Indefinitely' check box.
5. Press the 'Play Cue' button and observe the random selection process chooses to play sounds twice before playing others.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Audio
Affects Versions4.7.4
Target Fix4.8
Fix Commit2505775
CreatedApr 6, 2015
ResolvedApr 22, 2015
UpdatedApr 27, 2018