From owner-freebsd-multimedia@freebsd.org Sat Dec 26 16:12:37 2015 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08392A52801 for ; Sat, 26 Dec 2015 16:12:37 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E999F1189 for ; Sat, 26 Dec 2015 16:12:36 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id E933FA52800; Sat, 26 Dec 2015 16:12:36 +0000 (UTC) Delivered-To: multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8CB7A527FF for ; Sat, 26 Dec 2015 16:12:36 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B27241188 for ; Sat, 26 Dec 2015 16:12:36 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 4BEEB1FE024; Sat, 26 Dec 2015 17:12:27 +0100 (CET) Subject: Re: webcam and audio capture To: Marco Beishuizen , Michael Zhilin References: Cc: multimedia@freebsd.org From: Hans Petter Selasky Message-ID: <567EBCE6.8000907@selasky.org> Date: Sat, 26 Dec 2015 17:14:30 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2015 16:12:37 -0000 On 12/26/15 13:31, Marco Beishuizen wrote: > On Sat, 26 Dec 2015, the wise Michael Zhilin wrote: > >> Hi Marco, >> >> Do you have tried to change default_unit to 4? I don't remember exact >> sysctl node, but it's easy to grep it: >> >> sysctl -a | grep default_unit >> >> It worked for me before to resolve all troubles with sound. >> >> Thanks! > > Hi Michael, > > This unfortunately doesn't work because the problem isn't the soundcard > (output), but the webcam (input). Sound output is working fine > (/dev/dsp0). But sound input should be /dev/dsp4 but is incorrectly also > pointed to /dev/dsp0. > Hi, Virtual OSS from my I4B SVN can do this. svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b cd i4b/trunk/virtual_oss make all install kldload cuse kldload cuse4bsd sysctl hw.snd.basename_clone=0 virtual_oss -C2 -c 2 -b 16 -S -r 48000 -s 1000 -P /dev/dspX -R /dev/dspY -d dsp --HPS