Bug in sox-14.3.2/src/oss.c

Hans Petter Selasky hselasky at c2i.net
Sun Oct 28 12:28:05 UTC 2012


Hi,

Line buffering should be off, but this statement leads to SOX reading 1 and 
one byte from the recording DSP device under FreeBSD:

    /* Change to non-buffered I/O */
    setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * file->size);
    return(SOX_SUCCESS);

I think this flag should be used instead:

           _IOFBF  fully buffered

I've tested this change and it works like expected.

Any comments?

--HPS


More information about the freebsd-multimedia mailing list