How are you?
I plan to do the following application for playback and use the same audioTransportSource.
first playing a wav file A for 20 secs, I choose wav file B to continue play starting from that moment. Continue to play until 40secs, choose file C to play from that moment.
I try to make use of single AudioTransportSource to do it, and overwrite the source buffer of A .
for example, AudioTransportSource get data from source buffer A for 20secs. after switch,it starts to overwrite A’s buffer with file B’s data from 20secs to 40secs, then overwrite A’s buffer with C’s data from 40 secs… like this way.
we may has some delay for overiting the buffer.
we also can use it for mp3 file, since I use MP3audioFormatReader .cpp file searched on juce forum to deal with mp3 decoding job.
In this way, we do not need to initialize the audioTransportSource for each mp3 files, and the switch process will be under control and just read the data from the same buffer.