I am trying to use bass to stream a mp3 using the following code and it's not working and I have no idea why not. ( btw I am using delphi6 and bass1.8 )
procedure TForm1.Button1Click(Sender: TObject);
var
song : Hstream;
begin
song:= bass_streamcreatefile(false,'pill.mp3',0,0,0);
bass_streamplay(song,false,0);
end;
when I run the above code delphi spits out an error saying incompatable types string and pointer.
I tried amending the above so it looks like this and the error goes away but I don't hear anything.
procedure TForm1.Button1Click(Sender: TObject);
var
song : Hstream;
begin
song:= bass_streamcreatefile(false,PChar('pill.mp3'),0,0,0);
bass_streamplay(song,false,0);
end;