Configuring supercollider using jack

I have a new FreeBSD install and I have sound working well as per the instructions in the handbook. I’m able to select devices ( using the xfce panel ) and direct sound from a browser or another app like vla though the usb port which is where I have my sound device connected ( a mixer ) .
I would like to get supercollider working . By default it uses jack and it successfully connects to a jack server and when it generates sound, I can see on its “server meter” that sound is on the first output , but I hear no sound. So I think jack needs to be configured to direct sound out the FreeBSD driver to the usb port .
Jack is a complicated looking thing, so I installed a package that has a jack control panel UI ( I think it’s called QTJackCtl or something like that . Running this app and looking at the “graph” shows that supercollider is in fact connected to the jack server . How do I set up the server to talk to FreeBSD sound ? It seems like I need to connect to oss or maybe alsa. The jack server settings support different drivers .
Thank you !
 
Jackd should be redirected to different devices this way. Try different numbers:
Code:
sysctl hw.snd.default_unit=2

If it still doesn't work post your /dev/sndstat
 
I tried every number from 0-9. Here is my /dev/sndstat. My audio device (a mixer) is connected to the USB port and I do get sound from firefox on USB 8.

root@FreeBSD:~ # cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x0070) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0070) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0070) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0070) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC892 (Rear Analog 5.1/2.0)> (play/rec)
pcm5: <Realtek ALC892 (Front Analog)> (play/rec)
pcm6: <Realtek ALC892 (Internal Digital)> (play)
pcm7: <Realtek ALC892 (Rear Digital)> (play)
pcm8: <USB audio> (play/rec) default
pcm9: <USB audio> (play/rec)
pcm10: <USB audio> (play/rec)
No devices installed from userspace.
 
I do get sound from firefox on USB 8.
Then you can specify /dev/dsp8 as the output/playback device for jackd to use.

From the command line: jackd -d oss -P /dev/dsp8 (add your own arguments).

If you start jackd from QjackCtl, you can set it here:

jack-dsp8.png


... or alternatively add -P /dev/dsp8 in the "Server Suffix" field.
 
Then you can specify /dev/dsp8 as the output/playback device for jackd to use.

From the command line: jackd -d oss -P /dev/dsp8 (add your own arguments).

If you start jackd from QjackCtl, you can set it here:

View attachment 15672

... or alternatively add -P /dev/dsp8 in the "Server Suffix" field.
I was about ready to give up on running Supercollider on freebsd but that seems to work now. Thanks ! I set the output device through QjackCtrl. It doesn't seem like I have to run this app when I start the server in supercollider but I am not sure. I guess that when jackd is run from supercollider, it is somehow picking up the configuration file that QjackCtl created with this setting.
 
Back
Top