LuckyFIA / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

squeezelite failing on Raspberry Pi with Slowed, Crackling Audio #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have been running squeezelite on the raspberry pi for a while now (Arch 
Linux).  After a recent system update, I started to get bad crackling and 
slowing of the audio.  Log output shows a bunch of these:
[13:38:16.253615] output_thread:594 XRUN
[13:38:16.253965] ALSA snd_pcm_hw_start:590 SNDRV_PCM_IOCTL_START failed (-32)

I run squeezelite with the following line:
squeezelite-armv6 -m b8:27:eb:cb:b2:80 -n "Kitchen Player" -d all=debug -f 
squeezelite.log

So I do not specify a particular audio device.

I've gotten this both with squeezelite compile from the latest source, and from 
the pre-built binary from this site.

Any ideas?

George

Original issue reported on code.google.com by george.g...@gmail.com on 28 Apr 2013 at 8:30

GoogleCodeExporter commented 9 years ago
try increasing the alsa buffer size, add "-a 80" to the command line - does 
this help?

Original comment by trio...@btinternet.com on 29 Apr 2013 at 8:03

GoogleCodeExporter commented 9 years ago
I just ssh'd in from the office and ran the same line above but adding -a 80.  
I'm not there to hear what the output sounds like, but the log is now clear of 
the error messages.  I'll take a listen when I get home and let you know if the 
sound quality has not changed.

Thanks,

George

Original comment by george.g...@gmail.com on 29 Apr 2013 at 8:55

GoogleCodeExporter commented 9 years ago
It looks like that did it.  I'm not sure what has changed that required a 
larger buffer, but I'll poke around the recent updates to ArchLinux to see if I 
can discover anything.

Original comment by george.g...@gmail.com on 30 Apr 2013 at 12:50

GoogleCodeExporter commented 9 years ago
I'm seeing the same on rasbian, also after an update. Not getting anything in 
the debug log though, I only have debugging turned on for output, stream and 
decode. I'm getting a few audio errors in syslog. The -a fix seems to be 
working for me as well.

Original comment by salts633...@googlemail.com on 22 May 2013 at 6:31

GoogleCodeExporter commented 9 years ago
Same thing on Raspian after an update. -a 80 still gave some short pauses, -a 
160 seems to have fixed it.

Original comment by sc...@aenea.org on 14 Jun 2013 at 12:40

GoogleCodeExporter commented 9 years ago
closing as resolved by buffer tuning

Original comment by trio...@btinternet.com on 9 Jul 2013 at 6:47