Custom stream WMA

Started by koger,

koger

Hi everybody

I want to stream a wma file and some other information from a network socket.
After having streamed the other information I want to give the wma data to BASSWMA in memory.

I don't want to store the wma in a file before playing and I don't want to download the complete WMA song before starting to play it.
Is that posible ?

Ian @ un4seen

You can't use a custom delivery method (eg. via a STREAMFILEPROC callback) for WMA at present, but you could stream the file using the HTTP protocol... Your client would call BASS_WMA_StreamCreateFile(FALSE,"http://ip.ip.ip.ip:port",...) and your server would respond to the request.

koger

OK, is it something that you are planning to do?
I will need this for a commercial solution.

Is is possible to use some kind of a hack or workaround now?

koger

Can BASS_WMA_GetIWMReader be used ?

or can I use BASS_WMA_StreamCreateFile(2, ....) ?

BTW I'm using Delphi.

If you have any answer I would like to have it asap, because I should know tomorrow if we can use WMA instead of MP3 as we currently do.

Thank you in advance  :)

Ian @ un4seen

QuoteIs is possible to use some kind of a hack or workaround now?
Yep, the HTTP method I mentioned should work fine :)

(note BASS_WMA_StreamCreateFile can open network streams, as well as local files)

Quoteor can I use BASS_WMA_StreamCreateFile(2, ....) ?
I've not tried it myself, but you may well be able to achieve what you want via the IStream interface... maybe Delphi even provides appropriate objects/interfaces ready for you? (I don't use Delphi, so don't know much about it :))