Songs glitching over samba

Brandon Kuczenski <[email protected]> Sun, 8 May 2005 13:31:14 -0400 (EDT)
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <[email protected]>
I am running xmms 1.2.10 on Debian Sarge with 2.6.8 linux.  I am 
connecting to a local network over 802.11b and playing mp3s on xmms from a 
samba share (samba server is FreeBSD 4.10).

When I play these songs, I get glitches every 10-20 seconds: the playback 
pauses for a fraction of a second, just long enough to become very 
annoying after a minute or so.  The glitches correspond in time with the 
network-activity light flashing on my wireless card.

I have no shortage of CPU power (load is virtually nil) or network 
bandwidth (I can routinely obtain 1-2 Mbps transfers on this configuration 
to/from samba shares).

It seems to me that the problem is libmpg123.so not pre-buffering 
any/enough material.  Since the glitches only last for a fraction of a 
second, the plugin would only need to maintain a few hundred kilobytes of 
data in a buffer to eliminate this glitching.  I suppose it's worth 
mentioning that Winamp 2.5 (circa 1999) maintains a user-configurable 
buffer, along with a real-time display of the status of said buffer. 
It's really quite nifty.

I haven't seen much discussion about problems like this, so it may be that 
there's something wrong with my install (I imagine a lot of people like 
playing mp3s on a linux box from a samba server).  All the same, I am 
about to ditch my windows installation and I really don't want to deal 
with glitches in all my music every 10-20 seconds.  Can anyone suggest any 
pointers to a diagnosis or potential fix for my problem?  I'd be happy to 
patch the code if that's necessary.

Thanks in advance,
Brandon