From owner-freebsd-questions@freebsd.org Mon Nov 25 11:13:11 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E7CB91A8D83 for ; Mon, 25 Nov 2019 11:13:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47M4CB1pMmz4Jfd for ; Mon, 25 Nov 2019 11:13:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([188.102.96.95]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPA (Nemesis) id 1Mwfeu-1hbAkm2JJ4-00y67u; Mon, 25 Nov 2019 12:13:02 +0100 Date: Mon, 25 Nov 2019 12:12:55 +0100 From: Polytropon To: Tomasz CEDRO Cc: FreeBSD Questions Mailing List , "Steve O'Hara-Smith" Subject: Re: Audio mixer settings for recording with a microphone Message-Id: <20191125121255.97aac1e9.freebsd@edvax.de> In-Reply-To: References: <20191124184147.a374384d.freebsd@edvax.de> <20191124190121.3dd8b4d9.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:OtF89Fvkvcy8qRRJnurQKVMYqKduZQdTtgoiYHgrUaWWdSTP5bj e2dn0zjj+NNN5BoLoHNPXTAg2GWgt857LlmJ/Hx1LGIHMTPTUGqGXB4SiWTZaZP+wk150Yq X0MoHMZoANjsHivhKcEzpXhmZnm+M9m2ahcHMP8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 Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.74) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.75 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[95.96.102.188.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.991,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.989,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[74.192.72.217.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.37)[ip: (-0.67), ipnet: 217.72.192.0/20(0.25), asn: 8560(2.29), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2019 11:13:12 -0000 On Sun, 24 Nov 2019 21:00:41 +0100, Tomasz CEDRO wrote: > On Sun, Nov 24, 2019 at 7:01 PM Polytropon wrote: > > It's sad to see that several things stop working during the > > course of advancement of FreeBSD, things that worked reliably > > for decades... :-/ > > Indeed, we also got into the point where Kernel API changes from > release to release and the graphics driver crashes your machine in an > endless loop :-( And I won't start ranting about how vt is far inferior to sc (which worked for decades), that vt lets you choose from a few unreadable ant-tiny fonts and blurry colors, and can't even properly display umlauts... :-/ > In Hangouts (web video chat client) I had to change input device to > "Monitor of /dev/dsp1" in order to get the built-in microphone > working. I have following devices: > /dev/dsp1 > /dev/dsp2 > Monitor of /dev/dsp0 > Monitor of /dev/dsp1 > Monitor of /dev/dsp2 > > My WindowManager Enlightenment uses PulseAudio for sound routing.. I only have WindowMaker (no desktop environment). For mixer control, I occassionally use simple "xmixer", but for now, the CLI "mixer" provided by FreeBSD is my choice. For recording, I use Audacity. What I found out: There has to be a specific setting of non-zero values for more than one mixer channel in order to get things working: the input device (mic, line), a recording device, and the input gain, and in addition, the monitor channel, if desired. Should one involved be zero, recording probably won't work. > Hope that helps.. I discovered the following wisdon: A sufficient amount of obstacles eventually leads to "do not want". ;-) Now I have the following "solution", which is far from perfect, but allows me to use the microphone - a thing that worked decades ago: Microphone -> mixer -> line-in. I won't mention the additionally needed adapters and connectors for this mess. :-) So now I have both permanent independent (!) input monitoring _and_ the ability to adjust the input level of the microphone. The mixer also creates "poor man's stereo" (mic channel both on L and R). The mixer settings are as follows (relevant things marked, I need to see which values lead to best results): % mixer -f /dev/mixer0 Mixer vol is currently set to 50:50 Mixer pcm is currently set to 100:100 Mixer line is currently set to 100:100 <--- Mixer mic is currently set to 0:0 Mixer cd is currently set to 0:0 Mixer rec is currently set to 100:100 <--- Mixer igain is currently set to 100:100 <--- Mixer monitor is currently set to 0:0 Recording source: line <--- The "monitor" channel has to stay zero so I don't have that annoying high-pitch tone interference. It also doesn't affect the actual monitoring (line audio can be heared on headphones) or recording (line audio is recorded and "visible" in Audacity). Those two seem to be totally irelevant: % mixer -f /dev/mixer1 Mixer rec is currently set to 0:0 Mixer monitor is currently set to 0:0 Recording source: monitor % mixer -f /dev/mixer2 Mixer vol is currently set to 0:0 Mixer pcm is currently set to 0:0 NB: I don't seem to have any /dev/dsp* devices, no idea why. But everything else "works". In case I need to record with a mike more often, I'll probably build a little pre-amplifier, with a battery, power switch and LED, connectors 3.5mm (so no more adapters needed), level adjustment, and maybe a little VU meter for input control. For now, the "solution" mentioned above should be fine. That must be the "smart modern AI big data computing experience" everyone keeps talking about! ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...