mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: include buffered data in stream delay
The buffered data includes the extra samples used by the resampler.
This commit is contained in:
parent
5a9d2679ca
commit
8ec3932e97
1 changed files with 1 additions and 2 deletions
|
|
@ -1145,10 +1145,9 @@ do_process_done(struct spa_loop *loop,
|
|||
int32_t avail;
|
||||
|
||||
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;
|
||||
else
|
||||
stream->delay = 0;
|
||||
|
||||
if (stream->direction == PW_DIRECTION_OUTPUT) {
|
||||
if (pd->quantum != stream->last_quantum)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue