From owner-freebsd-current@freebsd.org Sat Mar 28 12:45:30 2020 Return-Path: Delivered-To: freebsd-current@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 AD59727B76D; Sat, 28 Mar 2020 12:45:30 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48qJNS4Rnnz4GHq; Sat, 28 Mar 2020 12:45:28 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 1577219926; Sat, 28 Mar 2020 12:45:20 +0000 (UTC) From: Jan Beich To: Graham Perrin Cc: freebsd-current@freebsd.org, FreeBSD questions Subject: Re: USB microphones with FreeBSD-CURRENT References: <5c93c4d2-897b-0671-b29a-9fde6031adf5@gmail.com> Date: Sat, 28 Mar 2020 13:45:13 +0100 In-Reply-To: <5c93c4d2-897b-0671-b29a-9fde6031adf5@gmail.com> (Graham Perrin's message of "Sat, 28 Mar 2020 06:31:11 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2020 12:45:31 -0000 Graham Perrin writes: > I can't get web browsers to recognise USB microphones. > > USB output (e.g. to my headphones) is OK. > > USB input (e.g. from the microphone part of the headphones) is not. > > Any suggestions? Firefox uses "pulse-rust" cubeb backend *by default* if "pulseaudio" package is installed. getUserMedia is supposed to preset a dropdown menu to select a microphone. Make sure pulseaudio actually recognizes the desired microphone e.g., debug via "pactl list" and "parec". I don't have a mic but, looking at the code, only pulse-rust or pulse backends on Linux/FreeBSD support selecting non-default audio device. It maybe possible to use other backends but if audio device used for output and input are different that'd require routing defaults which can be done via config file (e.g., ~/.asoundrc) or externally via virtual_oss. > pcm3: (play/rec) default > pcm4: (rec) Are these distinct physical devices? > hw.snd.default_unit: 3 Have you tried using 4?