Yep, there is a answer from mpg123 creator in forum list ;-) =>
>> In Linux, no problem, i use the Input-Handle of a pipe as file
>> descriptor.
>> => mpg123_open_fd(MyMP123Handle, InputHandle)
>> But if using Input-Handle of a pipe in Windows, at mpg123_read() i get
>> that error:
>> MPG123_BAD_R
> Check for writeln's in the htmlthread unit you added.
Oops, i think i get it (sorry it is Sunday). ;-(
- CreatePipeHandles (InHandle,OutHandle, PipeBufferSize);
- Writeln('Input Handle = ' + inttostr(InHandle) + ' Output Handle = ' +
inttostr(OutHandle));
=> Linux => Input Handle = 3 Output Ha
Marco van de Voort wrote:
In our previous episode, Mark Morgan Lloyd said:
Efficient implementation of coroutines requires CPU-specific code in the
RTL and possibly the compiler. However
http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html suggests a
way that coroutines can be implement
@ Andrew
> Check for writeln's in the htmlthread unit you added.
Hum, i did not add htmlthread unit (only fphttpclient and pipes).
What do you mean ?
@ Martin
> It should work, because TProcess relies on this function to do it's job.
Yes, maybe, but it does not work ;-(
Could it be a problem
rpzrpz...@gmail.com wrote:
Maybe look at the coroutine implementation in Go (Golang).
Maybe a better refrence. Maybe an optional switch in compiler so
you are not required to have all CPU architectures working on day 1.
Intel and ARM seem nice...
The issue isn't the syntax, it's that proper
On Sat, 21 Mar 2015, fredvs wrote:
What do you do with the inHandle ?
Michael.
It is used by mp123 mp3-decoder library.
=>function mpg123_open_fd(mph: Tmpg123_handle; fd: integer);
fp (file descriptor) := InHandle ;
It seems that InHandle as file descriptor does not work on Windows.
But i
Maybe look at the coroutine implementation in Go (Golang).
Maybe a better refrence. Maybe an optional switch in compiler so
you are not required to have all CPU architectures working on day 1.
Intel and ARM seem nice...
md
On 3/21/2015 4:29 PM, Marco van de Voort wrote:
In our previous episo