Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2018 14:55:55 +0200
From:      =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JEuINCh0L/QsNC80LDQutC+0LLRgdC60LjQuQ==?= <spamakowski@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: More than 2 channels of sound fails
Message-ID:  <CAMUQELCcwobYv-DgKywQPAUg4Acab3Q8JxF_gErOpe0mxQ5s-w@mail.gmail.com>
In-Reply-To: <0a5b0b1a-250c-fb43-0448-7f0b77ab9d3f@selasky.org>
References:  <CAMUQELDq8%2Bs7ck5pAzX%2BdBCeNVSwwqTaEhb15PzbyfbmSnw7vw@mail.gmail.com> <0a5b0b1a-250c-fb43-0448-7f0b77ab9d3f@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 10, 2018 at 4:12 PM Hans Petter Selasky <hps@selasky.org> 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.



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