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:
Wim Taymans 2023-10-02 15:38:52 +02:00
parent e1b6a4237f
commit 96c12c2988

View file

@ -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;