mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
alsa: resume smoother after unsuspend
The smoother is paused when the device is suspended but never resumed on unsuspend. Pass the paused = FALSE flag to the pa_smoother_reset() call to make it unpause when unsuspending. This patch improves source timings quite a bit.
This commit is contained in:
parent
7ba22276d2
commit
ef8abcb1b5
1 changed files with 1 additions and 1 deletions
|
|
@ -949,7 +949,7 @@ static int unsuspend(struct userdata *u) {
|
|||
snd_pcm_start(u->pcm_handle);
|
||||
|
||||
u->read_count = 0;
|
||||
pa_smoother_reset(u->smoother, pa_rtclock_now(), TRUE);
|
||||
pa_smoother_reset(u->smoother, pa_rtclock_now(), FALSE);
|
||||
u->smoother_interval = SMOOTHER_MIN_INTERVAL;
|
||||
u->last_smoother_update = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue