29 lines
683 B
Bash
Executable file
29 lines
683 B
Bash
Executable file
#!/bin/bash
|
|
|
|
systemctl --user stop pulseaudio.service
|
|
systemctl --user stop pulseaudio.socket
|
|
|
|
sleep 1
|
|
jack_control ds alsa
|
|
jack_control dps device hw:U192k
|
|
jack_control dps rate 48000
|
|
jack_control dps nperiods 4
|
|
jack_control dps period 256
|
|
jack_control start
|
|
|
|
sleep 1
|
|
systemctl --user start pulseaudio
|
|
|
|
sleep 1
|
|
alsa_out -d hw:PCH -j "Speaker" -c 2 &
|
|
|
|
sleep 1
|
|
jack_connect "PulseAudio JACK Sink":front-left Speaker:playback_1
|
|
jack_connect "PulseAudio JACK Sink":front-right Speaker:playback_2
|
|
|
|
if [ -x "$(command -v jack-matchmaker)" ]
|
|
then
|
|
jack-matchmaker -e \
|
|
Mopidy:out_jackaudiosink0_1 Speaker:playback_1 \
|
|
Mopidy:out_jackaudiosink0_2 Speaker:playback_2 &
|
|
fi
|