So, I'm having some trouble with a python script that uses pygame to play some sounds. The problem begins as early as just initing the pygame mixer. As soon as it's setup, I get back messages saying:
Code: Select all
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
The sounds get filled with horrible noise and there's tons of popping that takes place.
To check if my Pi could manage just playing a song, I used aplay with a 44100kHz mono audio file. For the most part, it plays just fine, but at the beginning I got back:
Code: Select all
underrun!!! (at least 28.951 ms long)
Thanks for any help!