tackyattack
Posts: 14
Joined: Mon Feb 25, 2013 10:18 pm

Pygame causes ALSA Underrun

Thu Dec 05, 2013 3:20 pm

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)

tackyattack
Posts: 14
Joined: Mon Feb 25, 2013 10:18 pm

Re: Pygame causes ALSA Underrun

Fri Dec 06, 2013 3:28 pm

Anybody? Is this unsolvable?

Return to “Troubleshooting”