[fpc-pascal] How to use pipes ?

fredvs fiens at hotmail.com
Thu Feb 2 02:47:42 CET 2017

Huh, sorry to monopolize but...

I get it. ;-)

Changing the built-in read-callback method with this:

function OpusReadCB(stream: Pointer; var buffer; nbytes: cint): cint; cdecl;
  if nbytes<>0
 result := TInputPipeStream(stream^).read(Buffer, nbytes)
    result := 0;

Does the tick.

This is real web-streaming, for hours in super-high quality !
Many thanks to everybody for helping in this (hard) battle.
I will clean the code and commit it asap.

fpc always win.


Many thanks ;-)
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/How-to-use-pipes-tp5727538p5727554.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.

More information about the fpc-pascal mailing list