I’m trying to play several audio files thru AudioTransportSource. Some are in loop, some are playing, some are in stop etc…
But when I stop one of them that was playing, there’s some kind of freeze happening, with all tracks being muted.
I guess it could be related to the Thread::sleep (2); bellow ?
const ScopedLock sl (callbackLock);
playing = false;
int n = 500; while (--n >= 0 && ! stopped) Thread::sleep (2); sendChangeMessage(); }
Any workaround ?