You are on page 1of 1

chan := BASS_StreamCreateFile(False, PChar(OpenDialog1.

FileName), 0, 0, floatable
or BASS_SAMPLE_LOOP {$IFDEF UNICODE} or BASS_UNICODE {$ENDIF});

CheckBox1.OnClick(Self);
CheckBox2.OnClick(Self);
CheckBox3.OnClick(Self);

// play both MOD and stream, it must be one of them!


BASS_ChannelPlay(chan, False);

////////////////////////
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!');

You might also like