Project

General

Profile

Bug #59

Sound cuts when reading .flac files from a cifs share and using the pulseaudio output plugin

Added by Mathieu Beliveau almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Major
Assignee:
-
Category:
plugins/pulse audio
Target version:
Start date:
January 25, 2012
Due date:
% Done:

100%

Estimated time:
Affects version:

Description

Platform: Ubuntu 11.10 (amd64)
Audacious ver. 3.1.2 (compiled from source)

When streaming .flac files from a cifs share on my local network, I'm experiencing seemingly random sound cuts when using the pulseaudio output plugin. Note that this problem does NOT occur when using the Alsa output plugin and that affecting different buffer values does not seem to produce any notable/positive effect - although this looks like a buffer overrun.

(sorry if this is a duplicate but I found no recent mention of this - although I've found old mention of it)

pulse_audio.c.diff (1.71 KB) pulse_audio.c.diff Mathieu Beliveau, February 07, 2012 22:22

History

#1 Updated by Mathieu Beliveau almost 13 years ago

Just tested on 3.2 (from source) and the issue still applies.

#2 Updated by John Lindgren almost 13 years ago

Just on a hunch I looked at the source of the PulseAudio plugin and found that it ignores the buffer size setting. Probably it is simply using too small a buffer.

#4 Updated by John Lindgren almost 13 years ago

  • Category set to plugins/pulse audio

#5 Updated by Mathieu Beliveau almost 13 years ago

Hi,

I had some time to quickly check the pulse_audio plugin source today and I added the pa_buffer_attr structure with proper parameters for allowing the server to set a buffer matching the value set in the UI. So far, it seems to have corrected the sound cuts and is consistent with the buffer values from within Audacious.

Note that the attached diff file is from Audacious 3.2 sources; hoping it'll be of some use.

Thanks!

#6 Updated by John Lindgren almost 13 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Target version set to 3.2.1
  • Affects version added
  • Affects version deleted ()

Also available in: Atom PDF