Thanks for your answer.
Of course I change only when (audioTransportSource.isPlaying() is false). So the getNextAudioBlock-Method of my AudioSource wonÂ´t be called, while changes take effect (if you mean this method when youÂ´re talking about “audio thread is still running” )
It looks like this. Would it be fine?
if (currentAudioFileSource != 0 && !transportSource.isPlaying())
currentAudioFileSource->releaseResources(); // MyAudioSource* currentAudioFileSource;
This looks nice, but (unfortunately) I implemented all my processing stuff in an AudioSource (actually an modified AudioFormatReaderSource).
The reason why I am asking is, that I am thinking calling these methods are reserved for other methods like audioDeviceAboutToStart and not meant for calling them manually, like when the user chooses another ProcMode. So I am a little bit worried about calling them.