Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 12:58:15 +0000
From:      Steve Roome <stephen_roome@pepcross.com>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: sound recording question with wavrec
Message-ID:  <20040319125815.GA559@dylan.home>
In-Reply-To: <20040319171920.2e05d9ef.taku@cent.saitama-u.ac.jp>
References:  <405A9507.5040904@kordel.de> <20040319171920.2e05d9ef.taku@cent.saitama-u.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 19, 2004 at 05:19:20PM +0900, Taku YAMAMOTO wrote:
> Have you set recording source properly?
> What does the command `mixer recsrc` say?
> 
> Hint: mixer =rec line

It should probably mention in the manpage that some shell users will
need to escape the equals as in "mixer \=rec line".

I may be stupid, but failing that, mixer doesn't appear to work
properly, or at least not as advertised, I've pondered whining about
this one for a while.

For example, in plain old /bin/sh 

$ mixer -rec line
mixer: illegal option -- r
mixer: illegal option -- e
mixer: illegal option -- c
usage: mixer [-f device] [-s] [dev [+|-][voll[:[+|-]volr]] ...
       mixer [-f device] [-s] recsrc ...
       mixer [-f device] [-s] {^|+|-|=}rec rdev ... 
 devices: vol, pcm, speaker, line, mic, cd, rec, ogain, line1, phin, phout, video
 rec devices: vol, line, mic, cd, line1, phin, phout, video

$ mixer +rec line
Recording source: line

$ mixer --rec line
Mixer line     is currently set to  75:75

$ mixer =rec line
Recording source: line

$ mixer
Mixer vol      is currently set to  75:75
Mixer pcm      is currently set to  75:75
Mixer speaker  is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer mic      is currently set to   0:0
Mixer cd       is currently set to  75:75
Mixer rec      is currently set to   0:0
Mixer ogain    is currently set to  50:50
Mixer line1    is currently set to  75:75
Mixer phin     is currently set to   0:0
Mixer phout    is currently set to   0:0
Mixer video    is currently set to  75:75
Recording source: mic

$ mixer ^rec line
Recording source: line

$ mixer \^rec line
Recording source: mic

$ mixer ^rec line
Recording source: line

Note how ^ doesn't seem toggle recording devices properly.

Obviously the toggle and possibility of having multiple record devices
might be due to the driver/mixer api. (i.e. mixer asks something to be
done, and driver says yes, but the mixer program doesn't ask the
driver about the value it just set afterwards and beleives that if the
ioctl worked then the parameter was changed correctly... or something
like that.)

        Steve Roome



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