@vasaka:
yes, this is really strange!!!
I was able to reproduce it by even using the same code as in the netradio example.
Even more funny is, that the following will actually work:
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, this.Handle);
Bass.BASS_PluginLoad("basswma.dll");
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_NET_PLAYLIST, 1);
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_NET_PREBUF, 0);
int chan = Bass.BASS_StreamCreateURL(@"http://78.46.54.158:1146", 0, BASSFlag.BASS_STREAM_BLOCK | BASSFlag.BASS_STREAM_AUTOFREE, null, IntPtr.Zero);
if (chan == 0)
chan = BassWma.BASS_WMA_StreamCreateFile(@"http://78.46.54.158:1146", 0L, 0L, BASSFlag.BASS_STREAM_BLOCK | BASSFlag.BASS_STREAM_AUTOFREE);
if (chan != 0)
Bass.BASS_ChannelPlay(chan, false);
Meaning in the above code sample the first "BASS_StreamCreateURL" will return 0 - but the second "BASS_WMA_StreamCreateFile" succeed!
Even thought the BASS_PluginLoad call was successfull!
Funny to see, that in the native basswma example a single "BASS_StreamCreateURL" seems to work - I would have no idea why?
The only difference I see between the native netradio sample, is that Bass.Net uses the UNICODE flag with BASS_StreamCreateURL.
And YES - this is it!
I just internally removed the UNICODE flag and see...now even the first "BASS_StreamCreateURL" succeeds!
So I guess this one is an issue for Ian...