From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 19 04:58:13 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00C0916A4CE for ; Fri, 19 Mar 2004 04:58:13 -0800 (PST) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D6A243D39 for ; Fri, 19 Mar 2004 04:58:12 -0800 (PST) (envelope-from steve@pepcross.dyndns.org) Received: from pepcross.dyndns.org ([82.33.88.87]) by smtp-out3.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.5600); Fri, 19 Mar 2004 12:58:11 +0000 Received: (from steve@localhost) by pepcross.dyndns.org (8.12.10/8.12.9/Submit) id i2JCwFJ7000687 for freebsd-multimedia@freebsd.org; Fri, 19 Mar 2004 12:58:15 GMT Date: Fri, 19 Mar 2004 12:58:15 +0000 From: Steve Roome To: freebsd-multimedia@freebsd.org Message-ID: <20040319125815.GA559@dylan.home> Mail-Followup-To: Steve Roome , freebsd-multimedia@freebsd.org References: <405A9507.5040904@kordel.de> <20040319171920.2e05d9ef.taku@cent.saitama-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040319171920.2e05d9ef.taku@cent.saitama-u.ac.jp> User-Agent: Mutt/1.4.1i X-OriginalArrivalTime: 19 Mar 2004 12:58:11.0398 (UTC) FILETIME=[D5686E60:01C40DB1] Subject: Re: sound recording question with wavrec X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2004 12:58:13 -0000 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