mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: include headroom in silence buffers
This commit is contained in:
parent
a36af57899
commit
e210c5f21c
1 changed files with 2 additions and 2 deletions
|
|
@ -803,7 +803,7 @@ recover:
|
|||
state->alsa_started = false;
|
||||
|
||||
if (state->stream == SND_PCM_STREAM_PLAYBACK)
|
||||
spa_alsa_silence(state, state->threshold * 2);
|
||||
spa_alsa_silence(state, state->threshold * 2 + state->headroom);
|
||||
|
||||
return do_start(state);
|
||||
}
|
||||
|
|
@ -1479,7 +1479,7 @@ int spa_alsa_start(struct state *state)
|
|||
state->alsa_started = false;
|
||||
|
||||
if (state->stream == SND_PCM_STREAM_PLAYBACK)
|
||||
spa_alsa_silence(state, state->threshold * 2);
|
||||
spa_alsa_silence(state, state->threshold * 2 + state->headroom);
|
||||
|
||||
if ((err = do_start(state)) < 0)
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue