[LAU] jack-stdio 1.1 - was [ANN] jack-stdout 1.0
Kjetil S. Matheussen
k.s.matheussen at notam02.no
Sun Apr 3 09:20:12 UTC 2011
On Sun, 3 Apr 2011, Kjetil S. Matheussen wrote:
> {
> int fd=fileno(stdout);
> while(bytes_to_write > 0){
> int written=write(fd,tobuffer,bytes_to_write);
> if(written==-1){
> fprintf(stderr,"Error writing to stdout.\n");
> break;
> }
> bytes_to_write -= written;
> }
> }
>
Ouch, there's a bug there! 'tobuffer' must change position
in case written<bytes_to_write. :-(
(BTW. How likely is it that 'write' doesn't write all bytes?)
More information about the Linux-audio-user
mailing list