WindowsMediaAudioFormat reading whole stream?

Hello all,

This is super slow (seems to be reading the whole mp3 from the site:

URL url("http://static.musescore.com/410/e261b8778e/score.mp3");
AudioFormatManager formatManager;
formatManager.registerFormat(new WindowsMediaAudioFormat(), false);
AudioFormatReader* reader = formatManager.createReaderFor(m_Url.createInputStream(false));

And this is super fast (seems to be reading only the headers) - but might be patent-encumbered:

URL url("http://static.musescore.com/410/e261b8778e/score.mp3");
AudioFormatManager formatManager;
formatManager.registerFormat(new MP3AudioFormat(), false);
AudioFormatReader* reader = formatManager.createReaderFor(m_Url.createInputStream(false));

Is there any way to get best of both worlds?

  • bram