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 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.