Stream to a file

Started by AfroMan,

AfroMan

Is there a way to stream a WMA file that into another file. What I see from examples are it looks like it is broadcasting it to particular ports in the Network. What I want to do is take a WMA file that resides in one location and stream it to another location into a file. Example please if possible.

Thanks... :-/

Azoth

AfroMan,
  What format are you looking to stream the WMA file to? You can take a look at the WriteWav sample in the BassWMA package. It just converts it to WAV format, but it should get you started. Look at the BASS_ChannelIsActive() loop, this is where the decoded PCM data is accessable. Unless you have VB as I do, this data can also be encoded to OGG or MP3 on the fly. With VB though a wrapper .dll is nessacary as neither the LAME or OGG sdks are usable from VB.

.Azoth.