How can I set up gapless random looping with mutiple sounds?

parabreton08
Tue, 10 Jan 2017 18:18:28 +0000
Audio

Hi My question is one that I have searched for a few days now, and just cannot find the answer I want.
I have a sound cue that has 3 interchangeable sound loops [background music]. The first solution I came across was to have a random loop node that calls the random node in my sound cue to get a random wave file to play, but it has a gap between loops as it says in the soundcue reference.
So that does not work for me, I have also tried doing it in C++, checking for when the sound cue finishes playing, then picking a random node, and telling it to play that. This way also has a small gap between playing.
I need a way to loop my background music, and when a segment (seperate wave player) finishes playing, to choose another segment, and have it immediately play that without any gap between segments. Either C++ or within the soundcue itself would be perfect.

18 posts - 1 participant