Radio stream clipped : logs show : "snd_pcm_delay, alsa error: -32"

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
tom123 Offline
Junior Member
Posts: 5
Joined: May 2009
Reputation: 0
Post: #1
Hi All,

I'm having fun with Xbmc : when I listen to a radio steam, after 2 minutes, the sound becomes clipped (very small gap each 2/3 seconds).

I did a 'tail -f' on the xbmc.log file and It seems that the sound is clipped whenever the following error is encountered : "ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe"

Code:
22:46:12 T:3051259712 M:1467592704    INFO: CheckIdle - Closing session to http://scfire-mtc-aa03.stream.aol.com (easy=0xad065b8, multi=0xace4d28)
22:48:36 T:3051259712 M:1466339328   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
22:48:40 T:3017874320 M:1466339328 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:48:41 T:3017874320 M:1466339328 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:48:42 T:3051259712 M:1466347520   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
22:48:43 T:3051259712 M:1466347520   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
22:48:44 T:3051259712 M:1466347520   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
22:48:45 T:3051259712 M:1466347520   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe

(The full log file is in Pastebin)

My XBMC installation was done using the wiki guide : ubuntu-mini + install by hand with svn of last saturday.

What do you think ? Is it a XBMC, an Alsa or a Pulse Audio error ?

Thanks in advance,

Tom
find quote
billybig Offline
Junior Member
Posts: 4
Joined: Feb 2009
Reputation: 0
Post: #2
tom123 Wrote:Hi All,

I'm having fun with Xbmc : when I listen to a radio steam, after 2 minutes, the sound becomes clipped (very small gap each 2/3 seconds).

I did a 'tail -f' on the xbmc.log file and It seems that the sound is clipped whenever the following error is encountered : "ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe"

Code:
22:46:12 T:3051259712 M:1467592704    INFO: CheckIdle - Closing session to http://scfire-mtc-aa03.stream.aol.com (easy=0xad065b8, multi=0xace4d28)
22:48:36 T:3051259712 M:1466339328   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
22:48:40 T:3017874320 M:1466339328 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:48:41 T:3017874320 M:1466339328 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:48:42 T:3051259712 M:1466347520   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
22:48:43 T:3051259712 M:1466347520   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
22:48:44 T:3051259712 M:1466347520   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
22:48:45 T:3051259712 M:1466347520   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe

(The full log file is in Pastebin)

My XBMC installation was done using the wiki guide : ubuntu-mini + install by hand with svn of last saturday.

What do you think ? Is it a XBMC, an Alsa or a Pulse Audio error ?

Thanks in advance,

Tom
I Was having a similar problem while using HDMI for audio. I noticed that my MP3 files play just a little bit too fast. So, I created an advancedsettings.xml file and added the following:

<advancedsettings>
<audio>
<resample>48000</resample>
</audio>
</advancedsettings>

Or if you already have the advancedsettings.xml file just add:

<audio>
<resample>48000</resample>
</audio>

This worked to play the mp3 files a the correct speed which also seemed to be effecting the mp3 streams I was trying to play.
find quote
tom123 Offline
Junior Member
Posts: 5
Joined: May 2009
Reputation: 0
Thumbs Up  Fixe : alsa error gone with resample to 48000 Post: #3
Yes, BillyBig, it works like a charm.

I added the resample 48000 and no more gaps.
The sound is finally good.

By the way, the "resample" parameter is even not documented on http://wiki.xbmc.org/?title=Advancedsettings.xml.

Thank you a lot, I am very happy now with this solution. Re-thanks, you rock.

Tom
find quote
topfs2 Offline
Team-XBMC Developer
Posts: 3,852
Joined: Dec 2007
Reputation: 8
Post: #4
tom123 Wrote:...
By the way, the "resample" parameter is even not documented on http://wiki.xbmc.org/?title=Advancedsettings.xml.
...

Sorry, I forgot this when I added the advanced setting, I have added it now. Thanx for the nudge.

Cheers,
Tobias

If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote
kayex Offline
Junior Member
Posts: 26
Joined: May 2009
Reputation: 0
Post: #5
I had the same problem with build r21416... Ubuntu Juanty using HDMI audio. Radio streams would start skipping ... the resample in advancedsettings fixed it for me as well. Thanks.
find quote
Goga777 Offline
Senior Member
Posts: 190
Joined: Jul 2009
Reputation: 0
Post: #6
I can confirm with

Code:
<audio><resample>48000</resample></audio>

the problem with audio sound was solved
find quote