Seamlessly blend music

Hey! I’m trying to put in a music in my game that is looped, but has an intro section. Problem is, the slightest delay is very audible. What I’ve tried:

  • making a cue and just concatenate the 2 waves, with the latter having looping enabled.
  • instead of concatenate, I play both waves at the same time, but put in delay in front of the looping one
  • overlapping the intro onto the loop, and cross fade
  • using quartz, trying to put the looped one on the same beat as the intro finishes

None of these helped, there were still audible pause between the tracks, depending on the fps of the game logic.

Is there a way to achieve perfect sync, or any trick to hide the hitch? Using UE4.27, so no meta sounds.

Sorry bit late, but sounds like there may be a gap baked into the audio files themselves? If you’re triggering both at once with a delay on the second, there shouldn’t be a gap between them.

If you’re not using metasounds then I would recommend using FMod for your audio, which will make synching much easier. I can help out with that if you need.

Hey, thanks for the answer!
Yeah, there is no gap in the audio files, and usually there is no gap in game either, but sometimes there is, its quite random. Can reproduce easily, if I intentionally lower game fps.

FMOD sounds like a big step, just to have a music intro working. My game doesn’t have that high audio quality to justify using a more complicated, heavy system to justify using it.