Switching sources with AudioTransportSource::setSource()

Is AudioTransportSource::setSource() supposed to be capable of switching between multiple PositionableAudioSource instances on-the-fly? i.e. Whilst audio is running

Or is it better to manage switching some other way, e.g. by having multiple AudioTransportSources running into a MixerAudioSource?

I have the same question about AudioSourcePlayer::setSource() – Should setSource() be used on-the-fly? If not, what is a good approach for dynamically switching between AudioSources in JUCE?



I think you can use setSource on the fly as long as you are aware that this may block or allocate memory - so doing this on the audio thread may not be a good idea.