How do I change the audio buffer size?

Asked by Erkki Lindpere

I want to play music from a samba share, but the server is on a WiFi connection which is bad enough to cause regular 2-5 second skips every minute. I'd like to increase the buffer size for rhythmbox so that I could avoid this, but I can't find documentation on how to do this.

Question information

Language:
English Edit question
Status:
Answered
For:
Rhythmbox Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
M Hickford (hickford) said :
#1

The relative file to edit is
/etc/asound.conf

It may not exist on your system, but you can find an example at
/usr/share/ubuntu-docs/ubuntu/sample/asound.conf_configuresoundproperly

Copy this to /etc/asound.conf ie.
sudo cp /usr/share/ubuntu-docs/ubuntu/sample/asound.conf_configuresoundproperly /etc/asound.conf

If necessary edit the lines
period_size and
buffer_size

to increase the buffer.

Hope to be of help. Matt.

ps. official documentation for the asound.conf file is
http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?company=Generic&card=Generic&chip=Generic&module=Generic
read the section on software mixing to get reasonable ideas of buffer and period sizes.

Revision history for this message
Andrew Zimmerman (ajzimm3rman) said :
#2

Sorry, this "/usr/share/ubuntu-docs/ubuntu/sample/asound.conf_configuresoundproperly" does not exist anymore.
An update?
Possibly having this within a ~./local/rhythmbox conf file would be wonderful.

Can you help with this problem?

Provide an answer of your own, or ask Erkki Lindpere for more information if necessary.

To post a message you must log in.