diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index eb03e5b26..0e8f1b300 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -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)