Administrator
|
> The only method I know is "uos_EndProc", but I can't use it, due to a error: Incompatible type for arg no. 2:
Did you try the demo MorseTL ? It uses uos_EndProc.
What code are you using (could you show it ?)
EndProc is a procedure to execute when the player stop.
But you may also use DSP procedure inside the main loop.
Something like this:
...
uos_InputSetPositionEnable(PlayerIndex1, InputIndex1, 1);
uos_InputAddDSP(PlayerIndex1, InputIndex1, nil, @LoopIt, nil, nil);
And LoopIt function will be something like:
function LoopIt(Data: TuosF_Data; fft: TuosF_FFT): TDArFloat;
begin
if uos_InputPosition(PlayerIndex, InputIndex) > uos_InputLength(PlayerIndex, InputIndex) - whenmuststart
then dosomething;
end;
|