How to capture audio with FreeBSD?
Victor Sudakov
vas at mpeks.tomsk.su
Wed Dec 13 14:16:41 UTC 2017
Onno K. wrote:
> > Since when is it not possible to record with
> > "cat /dev/dsp > file.wav" like in old hardcore Unixes?
>
>
> I have tried this, but the resulting file.wav is only 0 bytes after
> several seconds. So this does not appear to work either. Control-T
> reveals the process is stuck in 'pcmrdv' state.
So I wonder when it got broken.
>
> I am also curious how it works with multiple input devices; does BSD
> know what device to point to when accessing /dev/dsp?
>
AFAIK /dev/dsp is the default device according to sysctl
hw.snd.default_unit, but you can always use /dev/dsp0, /dev/dsp1 etc.
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
AS43859
More information about the freebsd-questions
mailing list