How to randomise where to start playing ambient sounds?

I tried the method below, but
but the start point is not randomised.
Do you know how to fix it?

What is AudioK? You have to use the length of the sound you’re playing…

AudioK = Audio Component

Right, but not the same sound cue?

You have to get the length from AudioK.

Audio K (AudioComponent) cannot be connected to the Random Float in Range function.

2023-06-22_10-10-59

Only animation resources can be connected.
Audio resources cannot be connected.

2023-06-26_11-50-30

You have to make the node by dragging from the wave reference.

Do you mean sound wave in object type?
I can’t get this to work either

Sorry, try this

image

1 Like

Wow~
Creating it as a SoundWave object solves the random start point problem.
Thanks for the help.

1 Like

You may want to stick to using “Sound Cue’s” in your project and avoid using wav. when possible, as they allow for creating and manipulating extra settings on the sound file. All you have to do is return the sound wav. object from the Audio Component, then you can read the info of the wav. file in the soundcue. Hope it helps, if you already solved the problem then you can ignore this :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.