alsa: actually place the delay in clock.delay

This commit is contained in:
Wim Taymans 2020-01-30 19:32:19 +01:00
parent 3d8eaf8e02
commit e7b5bd5e5b

View file

@ -702,7 +702,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 = state->duration * corr;
state->clock->delay = delay;
state->clock->rate_diff = corr;
state->clock->next_nsec = state->next_time;
}