private
schus1, schus2, schus3: HSTREAM;
song1:
string;
....
....
procedure TForm1.FormCreate(Sender: TObject);
begin
if not BASS_Init(1, 44100, 0,
Handle,
nil)
then
Application.Terminate;
song1:= '
g:\Musik\PLAYER1\schuss.wav';
schus1:= BASS_StreamCreateFile(False, pchar(song1),0, 0,BASS_SAMPLE_SOFTWARE
{$IFDEF UNICODE} or BASS_UNICODE
{$ENDIF});
schus2:= BASS_StreamCreateFile(False, pchar(song1),0, 0, BASS_SAMPLE_SOFTWARE
{$IFDEF UNICODE} or BASS_UNICODE
{$ENDIF});
schus3:= BASS_StreamCreateFile(False, pchar(song1),0, 0, BASS_SAMPLE_SOFTWARE
{$IFDEF UNICODE} or BASS_UNICODE
{$ENDIF});
end;
procedure TForm1.btnplay1Click(Sender: TObject);
begin
if (BASS_ChannelIsActive(schus1) = 0)
then
BASS_ChannelPlay(schus1, False)
else
if (BASS_ChannelIsActive(schus2) = 0)
then
BASS_ChannelPlay(schus2, False)
else
if (BASS_ChannelIsActive(schus3) = 0)
then
BASS_ChannelPlay(schus3, False)
end;
....
....