Blob Blame Raw
diff -Naur pulseaudio-equalizer-2.7.orig/usr/bin/pulseaudio-equalizer pulseaudio-equalizer-2.7/usr/bin/pulseaudio-equalizer
--- pulseaudio-equalizer-2.7.orig/usr/bin/pulseaudio-equalizer	2015-07-29 16:12:51.000000000 +0200
+++ pulseaudio-equalizer-2.7/usr/bin/pulseaudio-equalizer	2015-07-29 17:17:18.725946870 +0200
@@ -109,7 +109,7 @@
 # Get sink names and volumes
 PA_LADSPA_SINK="ladspa_output.$PA_LADSPA_PLUGIN.$PA_LADSPA_LABEL"
 PA_CURRENT_SINK=$(pacmd stat | grep "Default sink name" | sed 's/Default sink name: //g')
-PA_CURRENT_VOLUME=$(pacmd list | grep -A20 "<$PA_CURRENT_SINK>" | grep -m1 'volume: 0:' | awk '{print $NF}' | sed 's/%//g')
+PA_CURRENT_VOLUME=$(pacmd list | grep -A20 "<$PA_CURRENT_SINK>" | grep -m1 'volume: front-left: ' | cut -f1 -d'%' | awk '{print $NF}')
 PA_REAL_VOLUME=$((PA_CURRENT_VOLUME*65536/100))
 PA_REAL_PREAMP_FLOAT=$(echo "$PA_PREAMP*65536" | bc)
 PA_REAL_PREAMP=${PA_REAL_PREAMP_FLOAT/\.*}