Added mopidy mixer configuration
@@ -6,7 +6,7 @@ if [ -f /etc/force_exclusive_audio ]; then
FORCE_EXCLUSIVE=1
fi
-SERVICES="spotify raat mpd shairport-sync squeezelite bluealsa-aplay alsaloop dlnampris"
+SERVICES="spotify raat mpd shairport-sync squeezelite bluealsa-aplay alsaloop dlnampris mopidy"
FEATURES=""
@@ -371,7 +371,6 @@ reconfigure_dlna() {
restart_service dlna-mpris
}
-
# Reconfigure MPD
reconfigure_mpd() {
if [ "$MIXER_CONTROL" != "$CURRENT_MIXER_CONTROL" ]; then
@@ -381,6 +380,15 @@ reconfigure_mpd() {
fi
}
+# Reconfigure Mopidy
+reconfigure_mopidy() {
+ if [ "$MIXER_CONTROL" != "$CURRENT_MIXER_CONTROL" ]; then
+ sed -i s/control.*ALSAMIXER/control\ =\ $MIXER_CONTROL\ \;\ ALSAMIXER/ /etc/mopidy.conf
+ restart_service mopidy
+ echo " updated mixer"
+ fi
+}
+
# Reconfigure "can_record"
reconfigure_recording() {
if [ ! -d /etc/hifiberry ]; then
@@ -526,6 +534,8 @@ echo "Reconfiguring MPD"
reconfigure_mpd
echo "Reconfiguring DLNA"
reconfigure_dlna
+echo "Reconfiguring Mopidy"
+reconfigure_mopidy
echo "Reconfigure recording"
reconfigure_recording
echo "Reconfigure AudioControl2"
