alsa: don't double the resampler delay

The delay of the resampler is what it reports, don't double it.

See #854
This commit is contained in:
Wim Taymans 2021-03-14 14:13:37 +01:00
parent cc12755c6c
commit c4e3b5adbc

View file

@ -830,7 +830,7 @@ static int get_status(struct state *state, snd_pcm_uframes_t *delay, snd_pcm_ufr
*target = state->threshold + state->headroom;
if (state->resample && state->rate_match) {
state->delay = state->rate_match->delay * 2;
state->delay = state->rate_match->delay;
state->read_size = state->rate_match->size;
/* We try to compensate for the latency introduced by rate matching
* by moving a little closer to the device read/write pointers. */