There’s already an example that shows you how to do this, it is called /examples/realtimestitching. It uses multiple oggs. You can just remove the code from the do/while loop and it would only play the 2 oggs in a row that were specified.
Note that you won’t get absolutely perfect joining with the mp3 format, it inherently has a problem that the first frame (roughly 1000 samples) will be silence because of the way it is encoded and they way the decoding process works.
Please login first to submit.