So I looked at this error some more - it only occurs when the input source is a pointer, so there probably some wrong with my code, here’s a more basic example
// this works fine
inputReaders.add(new AudioFormatReaderSource(reader, true));
// this fails with same error
std::unique_ptr<AudioFormatReaderSource> newSource(new AudioFormatReaderSource(reader, true));
inputReaders.add(newSource.get());
Any thoughts?
BTW, I cam at this from wondering if there was an approach without TransportAudioSources - and wondering if i can just use the AddInputSource and RemoveInputSource gracefully while the mixer is running as
Input sources can be added and removed while the mixer is running as long as their prepareToPlay() and releaseResources() methods are called before and after adding them to the mixer.