Re: Playing only the beginning of a recording

Posted by fredvs on
URL: http://uos-forum.108.s1.nabble.com/Playing-only-the-beginning-of-a-recording-tp1476p1477.html

Hello Sc0li0sis and welcome to the uos forum.

You may do it via the uos_LoopProcIn() procedure.

If you take the uos SimplePlayer demo:

First add your stoptime, at line 125:

var
stoptime:  ttime;

then define it, adding at line 499 ( to stop after 1 second 500 ms )
stoptime := EncodeTime(00,00,01,500);

Finally update the uos_LoopProcIn() // procedure LoopProcPlayer1:
add this at line 710:
if uos_InputPositionTime(PlayerIndex1, Inputindex1) >= stoptime then uos_Stop(PlayerIndex1);

This will stop the player at stoptime.