From owner-freebsd-multimedia@freebsd.org Fri Sep 28 12:05:16 2018 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3BC3310AF24A for ; Fri, 28 Sep 2018 12:05:16 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 D386E70DA6 for ; Fri, 28 Sep 2018 12:05:15 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [178.17.145.230]) (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 347C2260168; Fri, 28 Sep 2018 14:05:13 +0200 (CEST) Subject: Re: virtual_oss channels To: =?UTF-8?Q?Goran_Meki=c4=87?= , freebsd-multimedia@freebsd.org References: <20180928115316.4h236m7vnuxkctgp@hal9000.home.meka.rs> From: Hans Petter Selasky Message-ID: Date: Fri, 28 Sep 2018 14:04:44 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: <20180928115316.4h236m7vnuxkctgp@hal9000.home.meka.rs> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2018 12:05:16 -0000 On 9/28/18 1:53 PM, Goran Mekić wrote: > Hello, > > I'm running virtual_oss for years now and it works perfectly. My current > command is: > virtual_oss -T /dev/sndstat -S -i 8 -C 18 -c 18 -r 48000 -b 32 -s 708 -f /dev/dsp1 -c 2 -d dsp -c 18 -d vdsp.jack -t vdsp.ctl -M i,0,8,0,0,0 -M i,0,9,0,0,0 -M i,6,8,0,0,0 -M i,6,9,0,0,0 > > What it does is creates two DSP devices: /dev/dsp and /dev/vdsp.jack. > First one has 2 channels for input and output, second one 18, as that's > how many channels audio interface has. I was wondering if it's possible > to use channels other than first two for /dev/dsp? In my case, it would > be really neat if I could use channels 8 and 9 (first channel being 0) > as inputs for /dev/dsp. Is it possible? Thanx! > Hi Goran, The default mapping is 0 0 1 1 2 2 3 3 and so on. By adding "-m 8,8,9,9" in front of "-d dsp", channel 8 and 9 will be the default. BTW: I've been working on some buffering updates in a yet un-released version of virtual_oss. Maybe you want to check it out and see if you find any bugs :-) Or if it works better or worse. Basically the changes are about using ring-buffers instead of block buffers and allow the -s argument to be in milliseconds, like "16.0ms" instead of number of samples. https://github.com/hselasky/virtual_oss make HAVE_CUSE=YES all install --HPS