Ticket #13902 (closed Bugs: Fixed)

Opened 22 months ago

Last modified 15 months ago

FLAC music tracks stutter and buffer underflows

Reported by: mooninite Owned by:
Priority: 4 - Normal Milestone: 13.0 "Gotham"
Component: Audio playback (audio/video files) Version: 12.0 "Frodo" Final
Severity: Normal Keywords:
Cc: fritsch, Blocked By:
Blocking: Platform: Linux
Revision:

Description

Distro: Fedora 17 x86_64

XBMC 12 RC3

Log file of playing a track:  http://xbmclogs.com/show.php?id=26044

The log file seems to indicate that PulseAudio is not being fed enough audio data to keep its buffers filled.

I do not have playback issues with video files. 2.0 and 5.1 movies and TV shows playback correctly.

XBMC 11 played music perfectly.

Attachments

0002-AE-Pulse-Audio-fix-buffer-underruns.patch Download (1.2 KB) - added by mooninite 20 months ago.
Patch to fix this bug

Change History

comment:1 Changed 21 months ago by ktdreyer

A similar bug in RPM Fusion, on Fedora 18:  https://bugzilla.rpmfusion.org/2655

comment:2 Changed 21 months ago by Tuju

What motherboard and display hardware you have?

Are you using passthrough?

comment:3 Changed 21 months ago by Tuju

I have the same problem and if I install mplayer into system and play that FLAC with it, no problem.

comment:4 Changed 21 months ago by mooninite

This problem still exists with 12.0 final.

Changed 20 months ago by mooninite

Patch to fix this bug

comment:5 Changed 20 months ago by mooninite

The attached patch will fix this bug. The PA plugin was using the pa_write() bytes for a buffer size, but this is not the PA buffer size... The patch uses the PA buffer size. Buffer underruns and stuttering are gone.

You may notice extra music being played on track change in the cross-fade, but this was an existing issue. I'll try to look at that when I have time.

comment:6 Changed 19 months ago by Martijn

  • Cc fritsch, added
  • Version changed from 12.0 "Frodo" RC3 to 12.0 "Frodo" Final

we only accept patches through github so if you want to create a pull-request there

comment:7 Changed 19 months ago by fritsch

The patch is currently PRed here:  https://github.com/xbmc/xbmc/pull/2240

comment:8 Changed 15 months ago by Martijn

  • Status changed from new to closed
  • Resolution set to Fixed
  • Milestone changed from Future / Pending to 13.0
Note: See TracTickets for help on using tickets.