mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa-pcm: Fix target calculation
Use threshold instead of last_threshold so that early wakeup is detected in handle_capture() when duration changes.
This commit is contained in:
parent
c0ed88f2f9
commit
0ccad38df1
1 changed files with 1 additions and 1 deletions
|
|
@ -802,7 +802,7 @@ static int get_status(struct state *state, snd_pcm_uframes_t *delay, snd_pcm_ufr
|
|||
}
|
||||
|
||||
|
||||
*target = state->last_threshold + state->headroom;
|
||||
*target = state->threshold + state->headroom;
|
||||
|
||||
#define MARGIN 48
|
||||
if (state->resample && state->rate_match) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue