Project

General

Profile

Delay when jumping in audio files (only with PulseAudio)

Added by zz top over 12 years ago

When using the PulseAudio output plugin, and I try to jump in a song (I don't know if that's the correct term for what I'm doing; I mean using alt+right, alt+left etc.), I have to wait 3-4 seconds for it to take effect. Stopping, pausing, starting works immediately.

I tried changing the bit depth and the buffer size, it didn't help. It works with ALSA.

Is this a known problem? If yes, how can it be solved?

My output settings are (not sure if relevant):

PulseAudio output plugin (I use PulseAudio 1.1)
Bit depth: 32
Buffer size: 4000 ms


Replies (2)

RE: Delay when jumping in audio files (only with PulseAudio) - Added by Doug Coffey over 12 years ago

Try bringing your buffer size down to 500ms...?

RE: Delay when jumping in audio files (only with PulseAudio) - Added by zz top over 12 years ago

Thank you for your comment.

I could swear I tried it before, now I tried it again just to be sure. Turns out, you're right, the length of the delay is more or less the same as my buffer size. This means that at 500ms there's still a small delay, at 100 it's okay. Contrary to my expectations, at 10000, the delay is not 10 seconds, only 3-4 (that's why I thought there's no correlation between the buffer size and the delay).

The reason for my 4000ms buffer size is that with lower values, under some circumstances, cracking sounds appeared in the music, and increasing the buffer size solved this.

When jumping in the music, is there a reason for not emptying the buffer, but waiting for it to be "consumed"?

    (1-2/2)