I'm using the latest BASS_CDG (2.4.0.1) in conjunction with BASS_FX, and at the end of the track, my application crashes.
I've gone back to using the CDG demo code in case there was something I had introduced that was causing the problem, however it still crashes. From the demo code:
procedure TForm2.Button1Click(Sender: TObject);
begin
if chan<>0 then
begin
BASS_StreamFree(Chan);
chan:=0;
end;
// Note: Added BASS_STREAM_DECODE flag in order to use BASS_FX
if Opendialog1.Execute(handle) then
Chan := BASS_StreamCreateFile(False, PChar(OpenDialog1.FileName), 0, 0, BASS_UNICODE or BASS_STREAM_DECODE);
if (chan=0) then
Exit;
Scrollbar1.Max := Round(BASS_ChannelBytes2Seconds(chan, BASS_ChannelGetLength(chan, BASS_POS_BYTE)));
BASS_CDG_SetVideoWindow(Chan, Panel1.Handle);
// BASS_FX call to introduce tempo effects:
Chan := BASS_FX_TempoCreate(Chan, BASS_FX_FREESOURCE);
BASS_ChannelPlay(Chan, False);
end;
I'm using Delphi 2010.
Thanks in advance