Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2017 21:16:32 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        "Onno K." <onno.k@gmx.com>
Cc:        Freebsd-multimedia@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: How to capture audio with FreeBSD?
Message-ID:  <20171213141631.GD6560@admin.sibptus.transneft.ru>
In-Reply-To: <trinity-89425d34-3d97-4c84-b992-4792dd6abd00-1513173896703@3c-app-mailcom-bs02>
References:  <trinity-b639b15a-c1a2-426d-b47a-69ab299dbcc3-1513171390323@3c-app-mailcom-bs16> <CALM2mE=1AYS+wNaO3a42VxQwGHzFBrQNskpaJSVaQFguXeVEHg@mail.gmail.com> <20171213135656.GB6560@admin.sibptus.transneft.ru> <trinity-89425d34-3d97-4c84-b992-4792dd6abd00-1513173896703@3c-app-mailcom-bs02>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20171213141631.GD6560>