Creating Reverb Tails for Audio

Hey Everyone,

I’ve created a system where a piece of audio is played once, and then the same piece with the reverb tail attached to the front is concatenated to it.

The problem I’m facing is that there is an audible gap between the first piece of audio playing and the concatenated one. Does anyone know why this would be happening or a better way to do this.

Thanks,

Adam

At the moment you cannot really expect two consecutive sounds to be played seamlessly.

Your best solution might be to play both sounds, the second with a delay, and crossfade between the two.

Thanks for the tip, I’ll give it a shot. Do you know why the concatenate wouldn’t be instantaneous? Would it perhaps be instantaneous if I just wrote the code in C++?

At the moment audio is not done in its own thread but in the main one, which means triggering can only happen at certain points every frame.

The bottom line is that we have no guarantee about triggering a sound at some precise point; you might be able to hack something for your specific usage but that wouldn’t be straightforward at all.

The upcoming overhaul of the audio engine should fix those issues.