Thanks for this, so All sorted and for future readers/searchers:
I added mpd into the i2c group:
sudo usermod -a -G i2c mpd
/mpd.conf audio output looks like this:
audio_output {
type "alsa"
name "My ALSA Device"
device "pivumeter" # optional
mixer_type "software" # optional
}
I created the following .asoundrc
:
pcm.!default {
type plug
slave.pcm "pivumeter"
}
ctl.!default {
type hw
card 0
}
And my /etc/asound.conf
looks like this:
pcm.!default {
type plug
slave.pcm {
type meter
slave.pcm "softvol"
scopes.0 pivumeter
}
}
ctl.!default {
type hw
card 0
}
pcm_scope.pivumeter {
type pivumeter
decay_ms 500
peak_ms 400
brightness 128
output_device scroll-phat
}
pcm_scope_type.pivumeter {
lib /usr/local/lib/libpivumeter.so
}
pcm.pivumeter {
type meter
slave.pcm 'hw:0,0'
scopes.0 pivumeter
}
pcm.dsp0 pivumeter
The volume has to be near 80% before it registers so I need to see how to tweak that now!