[fpc-pascal] How to use pipes ?

José Mejuto joshyfun at gmail.com
Wed Feb 1 20:04:46 CET 2017


El 01/02/2017 a las 19:55, fredvs escribió:

> Outframes := op_read_float(HandleOP,  @Buffer[0], FramesWanted , nil);
> if Outframes = 0 then exit;

Hello,

if OutFrames < 0 then exit;

The fact that op_read_float is zero is not an error, simply the amount 
of samples read by opus engine is zero, maybe because internal buffer is 
full and do not need more data by now.

Reading from internet is usually faster than playing bitrate. Maybe you 
should sleep for a bit and retry.

 From docs:

Returns:
The number of samples read per channel on success, or a negative value 
on failure.


-- 




More information about the fpc-pascal mailing list