From owner-freebsd-multimedia@FreeBSD.ORG Wed Feb 23 09:02:32 2005 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 09CE816A4CE for ; Wed, 23 Feb 2005 09:02:32 +0000 (GMT) Received: from md.gfk.ru (md.f231.gfk.ru [84.21.231.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1455243D2D for ; Wed, 23 Feb 2005 09:02:30 +0000 (GMT) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from dialup-chibis.gfk.ru ([10.0.6.45]) by md.gfk.ru (md.gfk.ru [62.205.179.201]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 40-md50000000663.tmp for ; Wed, 23 Feb 2005 12:02:09 +0300 Date: Wed, 23 Feb 2005 12:02:03 +0300 (MSK) From: Yuriy Tsibizov X-X-Sender: chibis@free.home.local To: Sakari Ellonen Message-ID: <20050223114858.R1352@free.home.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Processed: md.gfk.ru, Wed, 23 Feb 2005 12:02:09 +0300 (not processed: message from valid local sender) X-MDRemoteIP: 10.0.6.45 X-Return-Path: Yuriy.Tsibizov@gfk.ru X-MDaemon-Deliver-To: freebsd-multimedia@freebsd.org cc: freebsd-multimedia@freebsd.org Subject: RE: still struggling with sound recording 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: Wed, 23 Feb 2005 09:02:32 -0000 I'm not shure should recording work on Audigy 2 cards (never tested by me). With this settings for mixer and emuctrl I was able to record with sox (from AUX2) on Audigy: 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 100:100 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 mixer recsrc can be anything (recording source is selected from emuctrl) emuctrl ------- Id Description Vol RecVol FX (PCM) buses fx0 DSP FX BUS 0 77:77 (0:0) DSP Inputs in0 AC97 Codec 0:0 (0:0) in1 CD S/PDIF 0:0 (0:0) in2 Optical S/PDIF 0:0 (0:0) in4 Line-In (2) 0:0 (0:0) in5 Coaxial S/PDIF 0:0 (0:0) in6 AUX2 100:100 (100:100) DSP Outputs out0 DIGITAL: Front 0:0 out1 DIGITAL: Center 0 out2 DIGITAL: Subwoofer 0 out3 Headphones 100:100 out4 DIGITAL: Rear 0:0 out5 Front 0:0 out6 Center 0 out7 Subwoofer 0 out9 Rear 0:0 out10 AC97 ?? 0:0 out13 A/D converter (REC) 100:100 in emuctrl/mixer commands it should be emuctrl set out5 0 //mute speakers to avoid sound loop emuctrl set out3 100 //unmute headphones to monitor sound, from playback bus emuctrl set in6 100 //get sound from AUX2 to playback mix emuctrl rset in6 100 //get sound from AUX2 to recording mix emuctrl set out13 100 //get sound from recording mix into recording buffer mixer rec 100 // set recording mix level sox ("rec" command, part of sox package) -------------------- rec -V -d /dev/dsp0.0 -f u -r 44100 -s w -c 2 aaa.wav There are problems with recording of anything other than 16 bit stereo 44.1khz /48khz. You may get 'record interrupt timeout, channel dead' with some bitrate/channel count/sample size. if you have AudigyDrive (and record from Mic2) then you have to replace emuctrl set in6 100 //get sound from AUX2 to playback mix emuctrl rset in6 100 //get sound from AUX2 to recording mix with emuctrl set in4 100 //get sound from LineIn2 / Mic2 to playback mix emuctrl rset in4 100 //get sound from LineIn2 / Mic2 to recording mix For AC97 mic recording you will have to add mixer mic 100 //to unmute Ac97 mic mixer line 0 //mute mixer cd 0 //mute mixer line1 0 //mute mixer phin 0 //mute mixer phout 0 //mute mixer video 0 //mute and replace emuctrl set in6 100 //get sound from AUX2 to playback mix emuctrl rset in6 100 //get sound from AUX2 to recording mix with emuctrl set in0 100 //get sound from AC97 to playback mix emuctrl rset in0 100 //get sound from AC97 to recording mix But, as I know, there is no AC97 codec on some Audigy 2 cards. I don't know what connector on DSP is connected to mic ADC on this cards and you may need to do a little experiment: 1. connect your mic 2. enable 'debug' mode in emuctrl ('emuctrl debug on') 3. for each input listed in 'emuctrl list in' set input volume (not recording volume!) to 100. Be ready to turn off your speakers (or use headphones) and mic - you will get a sound loop when you enable correct connector that can damage your speakers! Yuriy Tsibizov, http://chibis.persons.gfk.ru/ p.s. I'm not subscribed to list, please CC me on reply.