Professional Documents
Culture Documents
FileName), 0, 0, floatable
or BASS_SAMPLE_LOOP {$IFDEF UNICODE} or BASS_UNICODE {$ENDIF});
CheckBox1.OnClick(Self);
CheckBox2.OnClick(Self);
CheckBox3.OnClick(Self);
////////////////////////
if NOT OpenDialogplaylist.Execute then Exit;
// free both MOD and stream, it must be one of them! :)
BASS_MusicFree(chan);
BASS_StreamFree(chan);
//
// f := PChar(OpenDialogplaylist.FileName);
strs[strc] := BASS_StreamCreateFile(False,
PChar(OpenDialogplaylist.FileName), 0, 0, 0{$IFDEF UNICODE} or BASS_UNICODE
{$ENDIF});
if strs[strc] <> 0 then
begin
ListBox1.Items.Add(OpenDialogplaylist.FileName);
Inc(strc);
end
else
Error('Error creating stream!');