From owner-freebsd-questions@freebsd.org Sun Nov 24 17:41:57 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 DB2DD1B5701 for ; Sun, 24 Nov 2019 17:41:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) (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 47LctD5Zy8z4GGq for ; Sun, 24 Nov 2019 17:41:56 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.8.36.103]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPA (Nemesis) id 1MBlpC-1iggCH1TNk-00CET8 for ; Sun, 24 Nov 2019 18:41:49 +0100 Date: Sun, 24 Nov 2019 18:41:47 +0100 From: Polytropon To: FreeBSD Questions Subject: Audio mixer settings for recording with a microphone Message-Id: <20191124184147.a374384d.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:O0W0ukBatN2aMIJRumJXJWS/gPYnWUOzE71fPPMYPUJ9m0J635G 4zCf41z6NL9ZuOzk1wbujqvxM8glafC5nUdjy41zP3xmLsaGRKZ00Pbkxd7b8K6DVTZOTSJ SLuWPwNG2VCSeaN5lgGlbMuSa2YKmYT+PpXMXU3E1+BAtlDE6P1/R9lcXYQf23x7MtYrnMN 6ZxE91vPcp2d0hALMBH3w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ctvAuluMzEU=:5/QIzozsojyLsMy9SnqU1A osQP5DfDuWpdAkYyiB9pcmJJhd4wqiswYl23mJThVicLKpblRadxcA/PyKy5woLT2FTSQxwdY CfDHqHwZxspoREf9FIiiyjJKGicuDknHh4l++kecwYh/iFf2t6flnBDin3NQu2WsIZQadO4A5 RZkUzyhFhEK78J1kwEjUdLLzUrFRdx3Ta42GgB48DanYprCiwE1X35j9CSXnEEkMEfhHaXRj9 HdX8JAHlSC8dif3QtSZmyCflbFHxlW6kDUacB/HgE8VUwYMQI7BJhP4rBQi2Q6V73hiW/bYbF XCljiCZXoXBq5EsRUV34cCwKav9Ut7rDXizehs+PhYuDCLwq2BRtmd9D+xcXWNnaJUXlcli1C U4at+6YLL/0dvke9QF6AKAoeSMNmCcq/6s5Cv7cQxnxpyUAeolsZj/gXftuuisimsBy9ENdhl +HXY+LR1PnIc9f1fm2/dV1KYSnqy3HS49RVTw0eRNiyO3pFcmFHWOcMN/vYPYVPFQ6K1Nru5W h0PjIvUDm1BL+GuHR8/WNJY8i6UGO2QJv0tdhvvxh9oInHxeDPRKs9CTi9uSPQ7zrMVQ0F3LX 30zUKSvT7lDGPrEtZQw6SnjqfwcTeevbXY+a+1GO2UZ38byef0Rv14+4mXgxh3CzIKfxSfknk rHIpyZzNLczPNhFGVNfVAwcdgAtm6j6y9/sr8qUQGmDIobuIjWaPqfIlVjePpe+NovVSp//xw xWv0eMyCX5Rde1gpaerJ6Cmp2uPT7ZcYi2EGHBT9Pvuc55dVcn4KiXLfrwKlDk7LSdyB3F9pi q3RpLKc2vE0r2AGTF05ZCq+79Wx2g3DNDp9MhS+jNIDwaDzAKz9LX1AbxUy/FrcO3r7dlTpMp 7N+By97KlUdkgdLjMpiA== X-Rspamd-Queue-Id: 47LctD5Zy8z4GGq X-Spamd-Bar: ++++ 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.75) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.82 / 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)[103.36.8.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(1.00)[0.997,0]; IP_SCORE(0.43)[ip: (-0.41), ipnet: 217.72.192.0/20(0.26), asn: 8560(2.30), country: DE(-0.01)]; NEURAL_SPAM_LONG(0.99)[0.994,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[75.192.72.217.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Sun, 24 Nov 2019 17:41:57 -0000 Currently I have the following problem: I'd like to record something to a file using a microphone. I have the following sound hardware in my el-cheapo home PC: % dmesg | grep pcm pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 pcm2: at cad 0 nid 1 on hdac0 That is a built-in sound system (located on the mainboard). % cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386) Installed devices: pcm0: (play/rec) default pcm1: (rec) pcm2: (play) I have one 3.5mm mic input on the rear and one on the front of the system. The rear one doesn't seem to work at all. The front one seems to work, but there is more "background noise" (ca. 1 kHz sawtooth shape + 1 octave higher "beeeeeeeeeeeeep" kind of sound, which I can hear on the headphones). If I do record something (I use audacity), the signal level is very low, and there is more "interference" beep than "used signal". I can control the noise with the last 5% of the levels using the "mic", "igain" and "monitor" control, but the anticipated signal level doesn't really change. My suspicion: I'm doing something wrong with the mixer, but I cannot see what it is... On my old system, I never had such problems - I would simply attach the microphone, increase "mic" as needed, and I could use sox's "rec" command to obtain the audio needed. I put a CMI soundcard (PCI-based) into that system, which FreeBSD did perfectly support. For testing, I set the mixer as follows (important settings marked with an arrow): % mixer -f /dev/mixer0 Mixer vol is currently set to 100:100 Mixer pcm is currently set to 100:100 Mixer line is currently set to 0:0 Mixer mic is currently set to 100:100 <--- Mixer cd is currently set to 0:0 Mixer rec is currently set to 0:0 Mixer igain is currently set to 100:100 <--- Mixer monitor is currently set to 100:100 <--- Recording source: mic <--- % mixer -f /dev/mixer1 Mixer rec is currently set to 100:100 Mixer monitor is currently set to 100:100 Recording source: monitor % mixer -f /dev/mixer2 Mixer vol is currently set to 0:0 Mixer pcm is currently set to 0:0 It does not work, as described above. I tried several microphones. Electret microphones don't work at all. Dynamic microphones do work, but far too low level. I've checked them with a semi-pro mixer system - the mikes work just fine, sufficient level. I chose the one with the "best" signal, RFT DM-2413M. Do "modern" PCs (this one is older than 10 years!) require a pre-amplifier for a microphone? I assume, if I try to connect the mike to the mixer, and the mixer to the line-in of the PC, it won't work as well... but that's the next thing I will try, as I can select "line" as recording inout as well. Never touch a running system. ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...