Author Topic: Custom stream WMA  (Read 3545 times)

koger

  • Posts: 50
Custom stream WMA
« on: 3 Jun '03 - 12:52 »
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

  • Administrator
  • Posts: 26222
Re: Custom stream WMA
« Reply #1 on: 3 Jun '03 - 14:13 »
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

  • Posts: 50
Re: Custom stream WMA
« Reply #2 on: 3 Jun '03 - 14:45 »
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

  • Posts: 50
Re: Custom stream WMA
« Reply #3 on: 3 Jun '03 - 15:21 »
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

  • Administrator
  • Posts: 26222
Re: Custom stream WMA
« Reply #4 on: 3 Jun '03 - 17:16 »
Quote
Is 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)

Quote
or 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 :))