When trying to use the Speaker pHat on Raspbian 2017-01-11 with Pygame to play an audio file I get a Memory Error related to the sound meter plugin - see error message here.
ALSA lib pcm_meter.c:678:(snd_pcm_meter_add_scope_conf) Cannot open shared library /usr/local/lib/libphatmeter.so Traceback (most recent call last): File "pyaudio.py", line 4, in <module> song = pygame.mixer.Sound('WALLE1.ogg') MemoryError
If I comment out all the sound meter sections in /etc/asound.conf it works. Is there a bug in the library? I have tried recompiling it and that doesn’t seem to make any difference.