Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Oct 2016 11:48:35 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        =?UTF-8?Q?Goran_Meki=c4=87?= <meka@tilda.center>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: snd_uaudio multichannel problems
Message-ID:  <650562fe-965e-d5bf-a1d2-77106cbfe91c@selasky.org>
In-Reply-To: <20161011091212.rfbeqbydl6glzddp@thinker>
References:  <20161010173118.4lff7phfx2zqm6wz@hal9000.meka.no-ip.org> <660971d2-0857-97b8-e047-b9853609b425@selasky.org> <20161010205648.wg6nfedkogn7gvvw@hal9000.meka.no-ip.org> <294a752d-06ae-0f35-583f-7cc2b5dfa763@selasky.org> <20161011083041.xkd3fvxy2h7jyf7v@thinker> <3d6ec00d-6678-eb4f-ee6b-4db0c07f9d84@selasky.org> <20161011091212.rfbeqbydl6glzddp@thinker>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/11/16 11:12, Goran Mekić wrote:
> On Tue, Oct 11, 2016 at 11:15:01AM +0200, Hans Petter Selasky wrote:
>> What version of FreeBSD are you using?
> 11
>
>> How many channels of the 18 should jack be able to access?
> Ideally, all 18. I tried with -i 18 -o 18, but I get mono (left) channel only which is 2x the speed.
>

Hi,

By default virtual_oss only supports one sample rate. The -S option 
enables libsamplerate.

Try running this as root, assuming your DSP device is /dev/dspX .

kldload cuse

# Start virtual OSS like this. -M mirrors output from 0 && 1 to 6 && 7
virtual_oss \
  -S \
  -i 8 \
  -C 18 -c 18 -r 96000 -b 32 -s 1536 -f /dev/dspX \
  -c 2 -d dsp \
  -c 18 -d vdsp.jack \
  -M o,0,6,0,0,0 \
  -M o,1,7,0,0,0 \
  -t vdsp.ctl &

# Start jackd like this
jackd -r -d oss -i 18 -o 18 -w 32 -r 96000 \
   -C /dev/vdsp.jack -P /dev/vdsp.jack &

# You may also want to install the GUI, virtual_oss_ctl,
# which uses QT4/5:
svn --username anonsvn --password anonsvn \
       checkout svn://svn.turbocat.net/i4b/trunk

cd virtual_oss_ctl
make all
make install

Feel free to contribute manual page examples if you think the current 
documentation is not that well.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?650562fe-965e-d5bf-a1d2-77106cbfe91c>