mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pulse-server: add the delay
Actually add the delay to the buffered amount of time instead of overwriting.
This commit is contained in:
parent
855d17ac1b
commit
35082e4f4b
1 changed files with 1 additions and 1 deletions
|
|
@ -1277,7 +1277,7 @@ do_process_done(struct spa_loop *loop,
|
|||
stream->timestamp = pd->pwt.now;
|
||||
stream->delay = pd->pwt.buffered * SPA_USEC_PER_SEC / stream->ss.rate;
|
||||
if (pd->pwt.rate.denom > 0)
|
||||
stream->delay = pd->pwt.delay * SPA_USEC_PER_SEC / pd->pwt.rate.denom;
|
||||
stream->delay += pd->pwt.delay * SPA_USEC_PER_SEC * pd->pwt.rate.num / pd->pwt.rate.denom;
|
||||
|
||||
if (stream->direction == PW_DIRECTION_OUTPUT) {
|
||||
if (pd->quantum != stream->last_quantum)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue