I’m creating an app which needs to play audio file (mp3, wav, aiff etc) from local file-system as well as from web. It works fine for local file-system on Windows and Mac. However, when I’m feeding an InputStream from a url (through URL::createInputStream & AudioFormatManager::createReaderFor), its getting hanged, or, sometimes responses the UI and playing after a long time (rarely) and sometimes not (most of the time).
So what I’m doing for now is downloading the content from web and keeping in memory-stream and feeding that stream when downloading is done.
What I want is the player will play audio from web with buffering (will be able to play the amount already downloaded and while the remaining content is downloading).
I have found a somewhat similar question here - http://www.rawmaterialsoftware.com/viewtopic.php?f=2&t=8692 with no responses.
Hints or suggestions are much appreciated.