21 May '13 - 13:06 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Detecting the end of a wav file?  (Read 227 times)
PGRacer
Posts: 1


« on: 4 Sep '12 - 00:24 »
Reply with quoteQuote

Hi, can anyone point me towards a method of detecting when a wav file has finished playing in VB6 please.
Logged
Wishmaster
Posts: 124


« Reply #1 on: 4 Sep '12 - 01:14 »
Reply with quoteQuote

hi

procedure Sync_End(SyncHandle : HSYNC; Channel, data, user : DWORD); stdcall;
begin
  //file has finished playing
  //SendMessageW(WndHandle, WM_PLAYER_UPDATE, WM_PLAYER_END, 0);
end;


Channel:= BASS_StreamCreateFile(...);

BASS_ChannelSetSync(Channel, BASS_SYNC_END or BASS_SYNC_ONETIME, 0, @Sync_End, Pointer(Self));

BASS_ChannelPlay(Channel, ...)
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines