19 May '13 - 22:00 *
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: Playback  (Read 552 times)
vs1784
Posts: 17


« on: 6 Sep '11 - 18:24 »
Reply with quoteQuote

Is it possible to playback a stream up to specific point in time or byte?

I need to start a stream to play and stop it at specific point. Is it possible?
Logged
Ionut Cristea
Posts: 1372


« Reply #1 on: 6 Sep '11 - 19:42 »
Reply with quoteQuote

You can set up a position sync. When that sync is triggered you can put code to stop the stream
Logged
vs1784
Posts: 17


« Reply #2 on: 6 Sep '11 - 20:19 »
Reply with quoteQuote

Thanks for reply.

What is a position sync and how can i call it?

Can you guide me to documentation?
Logged
Wishmaster
Posts: 124


« Reply #3 on: 7 Sep '11 - 07:51 »
Reply with quoteQuote

 
procedure Sync_Pos_End(SyncHandle : HSYNC; Channel, data, user : DWORD); stdcall;
begin
  // put code to stop the stream
end;


 (* Sync when a channel reaches a position.*)
  if (FPos_Stop > 0) then
   begin
    FTempPos:= BASS_ChannelSeconds2Bytes(FChannel, Trunc(FPos_Stop / 1000));
    FPos_Sync:= BASS_ChannelSetSync(FChannel, BASS_SYNC_POS or BASS_SYNC_MIXTIME, FTempPos, @Sync_Pos_End, Pointer(Self));
   end;
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines