Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2012 13:24:36 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        sox-devel@lists.sourceforge.net
Cc:        freebsd-multimedia@freebsd.org
Subject:   Bug in sox-14.3.2/src/oss.c
Message-ID:  <201210281324.36923.hselasky@c2i.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210281324.36923.hselasky>