sound recording question with wavrec
Steve Roome
stephen_roome at pepcross.com
Fri Mar 19 04:58:13 PST 2004
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
More information about the freebsd-multimedia
mailing list