Opened 3 years ago

Closed 3 years ago

#13902 closed Bugs (Fixed)

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


Distro: Fedora 17 x86_64


Log file of playing a track:

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 (1)

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

Download all attachments as: .zip

Change History (9)

comment:1 Changed 3 years ago by ktdreyer

A similar bug in RPM Fusion, on Fedora 18:

comment:2 Changed 3 years ago by Tuju

What motherboard and display hardware you have?

Are you using passthrough?

comment:3 Changed 3 years 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 3 years ago by mooninite

This problem still exists with 12.0 final.

Changed 3 years ago by mooninite

Patch to fix this bug

comment:5 Changed 3 years 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 3 years 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 3 years ago by fritsch

The patch is currently PRed here:

comment:8 Changed 3 years ago by Martijn

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