From aba3bf542dde5e7df9014c829b8f0894dfebebc3 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 27 Sep 2017 15:53:19 -0400 Subject: Added scripts for managing audio --- bin/do_dac.sh | 3 +++ bin/mpd_only.sh | 2 ++ bin/mpd_others.sh | 4 ++++ bin/startaudio | 4 +++- 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 bin/do_dac.sh create mode 100755 bin/mpd_only.sh create mode 100755 bin/mpd_others.sh (limited to 'bin') diff --git a/bin/do_dac.sh b/bin/do_dac.sh new file mode 100755 index 0000000..55e8d3d --- /dev/null +++ b/bin/do_dac.sh @@ -0,0 +1,3 @@ +#!/bin/sh +pacmd set-card-profile alsa_card.usb-FiiO_DigiHug_USB_Audio-01 output:iec958-stereo +pacmd load-module module-ladspa-sink sink_name=binaural sink_master=alsa_output.usb-FiiO_DigiHug_USB_Audio-01.iec958-stereo plugin=bs2b label=bs2b control=700,4.5 diff --git a/bin/mpd_only.sh b/bin/mpd_only.sh new file mode 100755 index 0000000..6b905d9 --- /dev/null +++ b/bin/mpd_only.sh @@ -0,0 +1,2 @@ +#!/bin/sh +pacmd exit && mpc enable "DigiHug USB Audio" && mpd disable "My Pulse Output" diff --git a/bin/mpd_others.sh b/bin/mpd_others.sh new file mode 100755 index 0000000..28fb5e9 --- /dev/null +++ b/bin/mpd_others.sh @@ -0,0 +1,4 @@ +#!/bin/sh +mpc disable "DigiHug USB Audio" +mpc enable "My Pulse Output" +pacmd load-module module-udev-detect diff --git a/bin/startaudio b/bin/startaudio index 407c751..8880742 100755 --- a/bin/startaudio +++ b/bin/startaudio @@ -1,2 +1,4 @@ #!/bin/sh -start-pulseaudio-x11 && sleep 2 && sh ~/.jackdrc +start-pulseaudio-x11 +mpd_others.sh +do_dac.sh -- cgit v1.2.3