Hi!
The calling conventions are done in the interface - so you don't have to repeat it while coding.
And for a lot a reasons put the StreamCreateURL in a loop:
* Internet may be slow
* Server may be slow
* Server may be many hops away (Australia! NewZealand!)
* Temporary loss of connection ....
So give it 3 to 6 retries before you give up.
procedure PlayURL (URL : String);
var i : integer = 0;
B_Stream: DWord;
begin
repeat
B_Stream := BASS_StreamCreateURL(Pchar(URL),0,BASS_Sample_Float,NIL,Nil);
inc(i);
until (B_Stream <> 0) or (i>3);
if B _Stream <> 0 then BASS_ChannelPlay(B_Stream,false);
end;
Winni
PS.: In the BASS package is a very good description of all functions in a chm file!