Csound Csound-dev Csound-tekno Search About

Re: how to pipe -L events in linux/unix

Date1998-06-17 17:29
FromRuggero Andrea Ruschioni
SubjectRe: how to pipe -L events in linux/unix
>

   Hi,

I have a hint...

I had the same exact problem regarding pipes to stdout, I couldn't pipe
printfs out in realtime, when perfomance completed csound would spit out
everything at once. At first I thought that it was an operating system
problem, so I changed from win95 to linux, but the problem persisted,
which made no sense 'cause linux is true multitasking.
I solved the problem zeroing the buffers in the sources and recompiling.

At the beginning of main.c:

        setbuf(stdout,0)

I believe it is the same problem for stdin just setbuf(stdin,0). Let me
know if this works...

Ruggero