PDA

View Full Version : SoftSqueeze Buffer Settings



kkitts
2005-10-26, 08:03
Hi All,
I'm running the SlimServer and SoftSqueeze on a very old machine (a PII/266 with 384M of Ram). I've done a number of tweaks including installing Java 1.5 and the mp3plugin which helped the performance and make it fairly usable. However, there is, randomly, a skip every now and then. And I can induce a skip by moving windows around - which leads to a warning message from SoftSqueeze about a buffer underun.

Has anyone experimented with increasing the buffer size in SoftSqueeze and if so what value did you increase it to? I'm not really worried about any syncronization issues that might result... I'd rather have a large buffer and smoother playback.

Thanks,

Kevin

rtitmuss
2005-10-26, 15:00
kkitts wrote:

>Has anyone experimented with increasing the buffer size in SoftSqueeze
>and if so what value did you increase it to? I'm not really worried
>about any syncronization issues that might result... I'd rather have a
>large buffer and smoother playback.
>
>
First you might like to try Softsqueeze 2.1, available in the next
nighlies. I have removed the buffer underrun message (it never worked
well), and replaced it with some timing checks.

Right now about the buffers in Softsqueeze. There are three buffers in
total, decoder buffer, playback buffer and java sound buffer. The
decoder buffer is for the encoded audio (mp3, flac, etc) and the
playback buffer is for pcm samples. The size of both buffers is fixed to
emulate the Squeezebox2, and these buffers are big enough to store up to
one minute of audio.

The java sound buffer is a small buffer buffer feeding the audio device.
It is the size of this buffer that you can modify in the Softsqueeze
preferences. The maximum size depends on the sound driver used, but for
the Primary Sound Driver I think it is limited to one second. Increasing
this buffer should reduce cpu usage, as fewer writes into this buffer
will be required. The default value I think should work fine for most
people. If you are getting stutters in the playback I am not sure
changing this buffer size will help - but I would be interested in any
results.

Richard