20 May '13 - 17:49 *
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: feature request  (Read 344 times)
Wishmaster
Posts: 124


« on: 15 Sep '12 - 06:29 »
Reply with quoteQuote

hi. Ian

is it possible to get a BASS_SYNC_START function/Flag?
when I use the flag BASS_SAMPLE_LOOP in conjunction with BASS_SYNC_END, BASS_SYNC_END is executed when the end is reached
but I also need a function that tells me when it begins to Play again.

thx.
Logged
Ian @ un4seen
Administrator
Posts: 15253


« Reply #1 on: 17 Sep '12 - 13:42 »
Reply with quoteQuote

Wouldn't that be basically the same thing as a BASS_SYNC_END sync? There isn't a gap when looping, so the loop start will immediately follow the end, ie. the end position is also the start position. Perhaps I have misunderstood? Smiley
Logged
Wishmaster
Posts: 124


« Reply #2 on: 18 Sep '12 - 00:50 »
Reply with quoteQuote

hi

how can that be the same? there are two positions a start and a End position.

BASS_SYNC_START would indicate that the Playback just has started or started again in case you are using the flag BASS_SAMPLE_LOOP 
and
BASS_SYNC_END would indicate that the Playback has ended. and in case you are using the flag BASS_SAMPLE_LOOP
 it is about to jump back and Trigger BASS_SYNC_START


I guess I can Check if the flag BASS_SAMPLE_LOOP is used and set two different Syncs


procedure Sync_End(SyncHandle : HSYNC; Channel, data, user : DWORD); stdcall;
begin
 // Playback ended
 SendMessageW(WndHandle, WM_PLAYER_UPDATE, WM_PLAYER_END, 0);
end;

procedure Sync_End_Loop(SyncHandle : HSYNC; Channel, data, user : DWORD); stdcall;
begin
 // Playback ended
 SendMessageW(WndHandle, WM_PLAYER_UPDATE, WM_PLAYER_END, 0);
 // Looop started again
 SendMessageW(WndHandle, WM_PLAYER_UPDATE, WM_PLAYER_ACTIVE, 0);
end;

Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines