I'm having issues with BASS_StreamCreateURL. Mostly, I'm getting an error code 40 (Timeout Error). This happens both in my own applications and in netradio. I'm using C# and BASS.NET Compact with the WinCE BASS.dll.
int mStream;
string mURL = "[a valid, working url]";
public frmMain()
{
InitializeComponent();
BassNet.Registration("valid email", "my reg code");
// init BASS using the default output device
if (Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero))
{
// create a stream channel from a file
mStream = Bass.BASS_StreamCreateURL(mURL, 0, BASSFlag.BASS_DEFAULT, null, IntPtr.Zero);
BASS_TAG_ID3 tag = new BASS_TAG_ID3();
if (mStream != 0)
{
// play the stream channel
Bass.BASS_ChannelPlay(mStream, false);
}
else
{
// error creating the stream
BASSError error = Bass.BASS_ErrorGetCode();
Console.WriteLine("Stream error: {0}", Bass.BASS_ErrorGetCode());
MessageBox.Show("ERROR!\n" + error.ToString());
}
}
else
{
MessageBox.Show("NO INIT");
}
}
Files off the local device are working great, but I have no luck with web streams. I've tried connections via ActiveSync, Wi-Fi, 3G... none of which are working on two different phones. Both phones are Windows Mobile 6 Professional on the AT&T network. Does anyone have any ideas about what is going on?