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;