deadbeef icon indicating copy to clipboard operation
deadbeef copied to clipboard

Changing ALSA resampling option only takes effect on the next track, instead of immediately

Open Lithopsian opened this issue 6 years ago • 1 comments

Steps to reproduce the problem

  1. Turn off Alsa resampling, turn on override sampling rate
  2. Play a track at a sampling rate not valid for your card (ie. 192 kHz)
  3. Tracks plays successfully.
  4. Turn off override sampling rate and remove resampler DSP
  5. Track plays at wrong speed (probably very slow)
  6. Turn on Alsa resampling.

What's going on? Describe the problem in as much detail as possible.

Alsa resampling should correct the sample rate and playback speed, but is not applied in this situation. The playback speed is not correct until a different track (and different sampling rate?) is started.

Information about the software:

Deadbeef version: trunk OS: Debian

Lithopsian avatar Feb 14 '18 11:02 Lithopsian

I believe this affects everyone, even when the DAC supports the sampling rate.

Set to Alsa + "without any software conversions" and the resampler disabled (for bitperfect audio), when the next file has a different Khz, I have to play it twice to get it to play at the correct speed.

An easy "hack" would be for Deadbeef to automatically "play any file twice" (in like one millisecond) to "wake up" alsa, maybe?

Otherwise, thanks for everything, Deadbeef is great. I'm using Deadbeef-1.9.1.

LeDechaine avatar Jun 19 '22 09:06 LeDechaine