falkTX plans to add config profiles to Cadence but until then you may want to script your common JACK device configs by creating some new functions in your ~/.bashrc . Below are two Cadence/jackdbus config functions took from my ~/.bashrc
For you to take advantage of these functions, you will first need to know working values for JACK's period and nperiod sizes at a specfic samplerate such as 48000 Hz, as used here, and substitute those values in as well as replacing all the hw: definitions with the correct values for your audio devices. You can use the 'aplay -l' command to discover the names of your ALSA audio devices.
Code: Select all
4e() { jack_control stop && jack_control eps realtime true && jack_control ds alsa &&\
jack_control dps device hw:PCH,0 && jack_control dps capture hw:PCH,0 &&\
jack_control dps playback hw:UAC3553B,0 && jack_control dps nperiods 2 &&\
jack_control dps period 1024 && jack_control dps rate 48000 && jack_control start &&\
nohup /usr/bin/python3 /usr/share/cadence/src/cadence_aloop_daemon.py --channels=2 & }
Code: Select all
9i() { amixer -c 2 set Speaker mute && jack_control stop && jack_control eps realtime true &&\
jack_control ds alsa && jack_control dps device hw:PCH,0 && jack_control dps capture hw:PCH,0 &&\
jack_control dps playback hw:PCH,0 && jack_control dps nperiods 2 && jack_control dps period 512 &&\
jack_control dps rate 96000 && jack_control start &&\
nohup /usr/bin/python3 /usr/share/cadence/src/cadence_aloop_daemon.py --channels=2 & }
Code: Select all
9o() { jack_control stop && jack_control eps realtime true &&\
jack_control ds alsa && jack_control dps device hw:USB,0 && jack_control dps capture hw:USB,0 &&\
jack_control dps playback hw:USB,0 && jack_control dps nperiods 2 && jack_control dps period 256 &&\
jack_control dps rate 96000 && jack_control start &&\
nohup /usr/bin/python3 /usr/share/cadence/src/cadence_aloop_daemon.py --channels=2 & }