py-simple-audio icon indicating copy to clipboard operation
py-simple-audio copied to clipboard

ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred

Open jplitza opened this issue 8 years ago • 2 comments
trafficstars

I am getting the above mentioned error when playing short 8kHz mono wave files, once per play. Also, at the end of the sound, it kind of starts playing again or something like that. Is there anything that I can do against that?

jplitza avatar Apr 10 '17 14:04 jplitza

@jplitza,

Thank you for the feedback! Sounds like a possible buffer size issue. Can you send me the audio file and the code you're using to play it? Also, what OS and hardware are you using?

hamiltron avatar Apr 12 '17 05:04 hamiltron

Sure, here's the file (zipped because of Github's upload policies).

The hardware is a Raspberry Pi (bcm2835) with Raspbian Jessie 8.0.

And let me add that aplay for example doesn't have this problem.

jplitza avatar Apr 12 '17 13:04 jplitza