DeaDBeeF-Player / deadbeef

DeaDBeeF Player
https://deadbeef.sourceforge.io/
Other
1.62k stars 176 forks source link

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

Open Lithopsian opened 6 years ago

Lithopsian commented 6 years ago

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

LeDechaine commented 2 years ago

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.