More than 2 channels of sound fails

Евгений Б. Спамаковский spamakowski at
Wed Jul 11 12:56:07 UTC 2018

On Tue, Jul 10, 2018 at 4:12 PM Hans Petter Selasky <hps at> wrote:
> Check the source code for rawrec, if it sets the channels and AFMT
> correctly.
> Compare with the source code for virtual_oss in ports. It might also
> help you setup a recording device.

This allowed me to hack up a trivial test program to set format
(AFMT_S32_NE), samplerate (48k), and channels (6) and measure the time
it takes to read 6 * sizeof(int32) * 48000 bytes from the device. That
turns out to be 1.0000 plus/minus epsilon seconds which is promising;
i.e. the two first programs I tried (sox and rawrec) both suck.

Thank you sir for those pointers.

More information about the freebsd-multimedia mailing list