Bug #314

Audacious 3.4 on Ubuntu 13.04: no gapless playing with ALSA output

Added by Luca Rossetto Casel over 1 year ago. Updated about 1 year ago.

Status:Closed Start date:July 06, 2013
Priority:Major Due date:
Assignee:- % Done:

100%

Category:core
Target version:3.4.1
Affects version:3.4

Description

On Ubuntu 13.04 (64 bit), after upgrading Audacious to version 3.4 from WebUpd8 ppa, with ALSA output I cannot obtain gapless playing anymore: a gap appears now at the end of every track.
I also noticed that the larger is the buffer, the more the gap's lenght increases. With the default buffer of 500 ms the gap is about a second or less; with greater buffers, it's about several seconds.
Switching to PulseAudio output, the issue disappears at all! With Audacious 3.3.* all worked fine.

I created a bug on Launchpad:
https://bugs.launchpad.net/ubuntu/+source/audacious/+bug/1198432

Thank you for this great software, and thank you in advance for the help!

Associated revisions

Revision 4bba6250
Added by John Lindgren over 1 year ago

Fix gapless playback (broken by playback.c changes in 3.4). Closes: #314.

Revision 425bd29e
Added by John Lindgren about 1 year ago

Fix gapless playback (broken by playback.c changes in 3.4). Closes: #314.

Conflicts:
src/audacious/playback.c

History

#1 Updated by John Lindgren over 1 year ago

Are you actually using ALSA or simply playing through PulseAudio's ALSA sink?

#2 Updated by Luca Rossetto Casel over 1 year ago

ALSA, with output to the soundcard. Thank you for answering!

#3 Updated by John Lindgren over 1 year ago

Through dmix, or direct to the hw: device?

What format of audio files are you playing, and does the same problem appear with other formats?

#4 Updated by John Lindgren over 1 year ago

Do both songs have the same number of channels and the same sample rate? Do you have any effect plugins enabled?

#5 Updated by Luca Rossetto Casel over 1 year ago

I set Audacious to send the sound directly to the hw: device, without passing by dmix; but I tried to use dmix too, and the problem remained.
I use Audacious prevalently as a CD player, but I made some test with other formats, with different sample rates, etc.: I could notice no differences, the bug remained.

As a further test, I tried to send the signal to ALSA through Jack: the gap is considerably reduced, nearly unnoticeable, but still present.

#7 Updated by John Lindgren about 1 year ago

  • Category changed from plugins/alsa to core
  • Status changed from New to Closed
  • Target version set to 3.4.1
  • % Done changed from 0 to 100

I'm going to assume this is fixed. Please comment if not.

#8 Updated by Luca Rossetto Casel about 1 year ago

Dear John, I'm very embarrassed: I'm struggling to install from the source code you upload in Git, but I don't know how to do! I read some how-to, but it seems I'm missing something... Would it be possible to apply the patch to my installation of Audacious?
I humbly beg pardon!

#9 Updated by John Lindgren about 1 year ago

No need to be embarrassed; compiling Audacious from source is daunting the first time. Did you try the instructions at http://redmine.audacious-media-player.org/boards/1/topics/788? Please reply to that forum post if you still have trouble.

#10 Updated by Luca Rossetto Casel about 1 year ago

Dear John, thank you for your patience! With your instructions, I've now compiled Audacious. Your patch resolved the bug, now everything is perfect! Thanks!!!

Also available in: Atom PDF