Date: Fri, 28 Sep 2018 14:04:44 +0200 From: Hans Petter Selasky <hps@selasky.org> To: =?UTF-8?Q?Goran_Meki=c4=87?= <meka@tilda.center>, freebsd-multimedia@freebsd.org Subject: Re: virtual_oss channels Message-ID: <f950b6f3-d5da-3a77-325c-825452a4d84c@selasky.org> In-Reply-To: <20180928115316.4h236m7vnuxkctgp@hal9000.home.meka.rs> References: <20180928115316.4h236m7vnuxkctgp@hal9000.home.meka.rs>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f950b6f3-d5da-3a77-325c-825452a4d84c>