The app I compile works fine the first time I load a WAV file, but the SECOND time I load a WAV the application hangs.
I wonder if it's something to do with the transportSource.setSource reader being assigned a new one each time a WAV is loaded without the previous source being released?
Thanks Chris, that both works and makes sense. Much appreciated.
You say the solution is in the full demo, but I can't find that in any of the included MainComponent_xx.cpp files. I wonder if I'm missing a demo resource from somewhere else ?
I found it in the JuceDemo project, AudioPlaybackDemo.cpp in the method loadFileIntoTransport .
I start to know well this project because I'm looking for a way to play N-Audio file at the same time but I can't find any solutions here. So I hope to find an anwser in the demo...