Re: [mpg123-users] Are Ports code still usable ?
Brought to you by:
sobukus
|
From: Fred v. S. <fi...@ho...> - 2015-03-25 11:52:09
|
>> PS: mpg123_open_fd(mphandle, fd) is working perfectly on *nix sysyems, using pipe-input.>> => same code crash with windows.> Please post the code then. I can't remember from the top of my head > any gotchas about pipe handling but simple stdin/stdout file descriptors do work (no crashes). MiKRO / > > Mystic Bytes Hello and many thank to take care ;-) Ok, here Pascal code ;-) 1) Create the pipes => CreatePipeHandles(InHandle, OutHandle, PipeBufferSize); 2) Assisgn output pipe stream => Output:=TOutputPipeStream.Create(OutHandle); 3) Some code to assign OutputStream to Http.Get => Http.Get(URLaddress, Output); 4) Assisgn input pipe stream => mpg123_open_fd(MyMPHandle,InHandle); => Crash on Windows, OK on Linux. Fre;D |