mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: do playback sync even when alsa is paused
We only start the ALSA pcm after we get our first buffer. We still need to do the sync through (and get the number of prefilled samples) to make sure we set our new timeout and don't keep on waking up quickly while the graph fetches the first buffer.
This commit is contained in:
parent
e1b6a4237f
commit
96c12c2988
1 changed files with 0 additions and 3 deletions
|
|
@ -2395,9 +2395,6 @@ static int alsa_write_sync(struct state *state, uint64_t current_time)
|
|||
snd_pcm_uframes_t avail, delay, target;
|
||||
bool following = state->following;
|
||||
|
||||
if (SPA_UNLIKELY(!state->alsa_started))
|
||||
return 0;
|
||||
|
||||
if (SPA_UNLIKELY((res = check_position_config(state)) < 0))
|
||||
return res;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue