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.


--

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to