alsa: add resampler delay in clock delay reporting

This commit is contained in:
Wim Taymans 2021-03-08 17:12:00 +01:00
parent 99b2973c31
commit cab5cf3ccb

View file

@ -907,7 +907,7 @@ static int update_time(struct state *state, uint64_t nsec, snd_pcm_sframes_t del
state->clock->nsec = nsec;
state->clock->position += state->duration;
state->clock->duration = state->duration;
state->clock->delay = delay;
state->clock->delay = delay + state->delay;
state->clock->rate_diff = corr;
state->clock->next_nsec = state->next_time;
}