Project

General

Profile

Bug #499

Unexpected delay on track switching

Added by Maxim Khaberev over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Minor
Assignee:
-
Category:
-
Target version:
-
Start date:
January 15, 2015
Due date:
% Done:

0%

Estimated time:
Affects version:

Description

I got unexpected delays (about 1-2 seconds) during changing the tracks (mp3).

Steps to reproduce:
1. Start playback of some track.
Result: OK
2. Play another track by double-clicking in playlist or pressing "next" button or double-clicking in a file manager.
Result: the playback started after several seconds

However if there is no any track playing then the playback is started almost immediately. E.g.
1. Start playback of some track.
Result: OK
2. Press "Stop" button
Result: OK
3. Play another track by double-clicking in playlist or pressing "next" button or double-clicking in a file manager.
Result: the playback started immediately

Moreover
1. Start playback of some track.
Result: OK
2. Restart playback of the same track but double-clicking the entry in the list
Result: the playback restarted after several seconds
3. Make fast clicking on "Stop" and "Play" buttons in the UI or use keyboard shortcuts
Result: the playback is stopped and started without delays

Running in verbose mode did not show any interesting info (from my point of view)

System Archlinux x86_64 up-to-date
Audacious version 3.5.2-2

History

#1 Updated by Maxim Khaberev over 9 years ago

Reducing the buffer size from 2000ms to minimal value (100ms) fixes the issue.

Looks like the audacious does not clear the buffer during the track switching and plays all buffered content of the previous track before new track. Is it expected behavior?

#2 Updated by John Lindgren over 9 years ago

What output plugin are you using?

#3 Updated by Maxim Khaberev over 9 years ago

PulseAudio

#4 Updated by John Lindgren over 9 years ago

  • Status changed from New to Rejected

This seems to be a known limitation of PulseAudio:
http://lists.freedesktop.org/archives/pulseaudio-discuss/2013-July/017929.html

If it bothers you, I'd suggest uninstalling PulseAudio and using straight ALSA.

#5 Updated by Maxim Khaberev over 9 years ago

It looks very strange for me. I started using the Audacious (always with PulseAudio) several years ago but I've noticed the issue several days (weeks) ago.
The discussion you presented is dated by July 2013 - so I believe that the I must see the issue earlier.

Anyway,
John, thanks for the info and your help. Lets keep the issue closed. I'll try to recall all my latest activity (reconfiguration, packets upgrades etc.) which can be related to the issue and will reopen the ticket if necessary.

#6 Updated by John Lindgren over 9 years ago

Older versions of Audacious wouldn't have had the problem when switching tracks, since we used to open a completely new audio stream, but you would have still seen the problem when seeking, or so I would expect.

Also available in: Atom PDF