mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-06-29 16:52:02 +00:00
Automatic ES-9 setup
This commit is contained in:
9
scripts/audio/es9start.sh
Normal file → Executable file
9
scripts/audio/es9start.sh
Normal file → Executable file
@ -3,15 +3,16 @@
|
||||
# Script to add another audio interface if available.
|
||||
|
||||
# Import library
|
||||
source $(dirname ${BASH_SOURCE[0]})/audio-lib.sh
|
||||
source $(dirname $(realpath ${BASH_SOURCE[0]}))/audio-lib.sh
|
||||
|
||||
DEVICE_NAME='ES-9'
|
||||
DEVICE_NUM=$(getCardNumber $DEVICE_NAME)
|
||||
checkCard $DEVICE_NAME $DEVICE_NUM
|
||||
|
||||
|
||||
echo $DEVICE_NUM
|
||||
|
||||
# Start up audio interface
|
||||
alsa_in -d hw:$DEVICE_NUM -j "$DEVICE_NAME In" -c 16 -q 1 &
|
||||
alsa_out -d hw:$DEVICE_NUM -j "$DEVICE_NAME Out" -c 16 -q 1 &
|
||||
pkill es5jack || true
|
||||
es5jack >/dev/null 2>/dev/null &
|
||||
sleep 0.1
|
||||
jack_connect ES-5:out "$DEVICE_NAME Out:playback_9" || true
|
||||
|
1
scripts/audio/es9stop.sh
Normal file → Executable file
1
scripts/audio/es9stop.sh
Normal file → Executable file
@ -4,3 +4,4 @@
|
||||
|
||||
pkill alsa_in
|
||||
pkill alsa_out
|
||||
pkill es5jack
|
||||
|
Reference in New Issue
Block a user