Question about BASS_StreamCreateURL and BASS_WMA_StreamCreateFile

Started by carolino,

carolino

Hello, I have a question regarding BASS_StreamCreateURL and BASS_WMA_StreamCreateFile.

In the BASS.NET NetRadio example, I noticed that they use PluginLoad. However, when they call the BASS_StreamCreateURL method, if it returns 0, they use BASS_WMA_StreamCreateFile.

Is this just for example, or is it really necessary to use the specific method for WMA if the first one fails? Or will the first method try to open as WMA as well, since PluginLoad was used?

Ian @ un4seen

No, if you've loaded BASSWMA.DLL via BASS_PluginLoad, then there is no need to call BASS_WMA_StreamCreateFile after BASS_StreamCreateURL. I would guess that piece of code probably originates from way back, before the plugin system (BASS_PluginLoad) was introduced.

radio42

Correct and it was just a way to demonstrate, that you can use both ways. But the plugin form is recommended (and easier).