I’d like to have the following behaviour on my app :
when the user loads a song file, a thread is created to compute the peaks and show it to the user as fast as possible
and in the meantime, the user can start the playback, or seek inside the track
My question is : do I need to create a custom system for this or is AudioSource::getNextAudioBlock() already thread safe ?
I guess problems will appear if the two threads do setNextReadPosition() in the same time…
Or maybe I’m missing something obvious ?