alsa: after XRun, fill with previous threshold

It is possible that the quantum has changed before the xrun and
then we will assume the previous quantum was in the device.
This commit is contained in:
Wim Taymans 2021-03-09 15:46:44 +01:00
parent aa0e0043d3
commit 63a34f4f84

View file

@ -803,7 +803,7 @@ recover:
state->alsa_started = false;
if (state->stream == SND_PCM_STREAM_PLAYBACK)
spa_alsa_silence(state, state->threshold + state->headroom);
spa_alsa_silence(state, state->last_threshold + state->headroom);
return do_start(state);
}