mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: don't add queued samples
It makes things worse
This commit is contained in:
parent
3eca7557f8
commit
908dc6b10f
1 changed files with 2 additions and 4 deletions
|
|
@ -1302,12 +1302,10 @@ do_process_done(struct spa_loop *loop,
|
||||||
int32_t avail;
|
int32_t avail;
|
||||||
|
|
||||||
stream->timestamp = pd->pwt.now;
|
stream->timestamp = pd->pwt.now;
|
||||||
if (pd->pwt.rate.denom > 0) {
|
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.denom;
|
||||||
stream->delay += pd->pwt.queued * SPA_USEC_PER_SEC / stream->ss.rate;
|
else
|
||||||
} else {
|
|
||||||
stream->delay = 0;
|
stream->delay = 0;
|
||||||
}
|
|
||||||
|
|
||||||
if (stream->direction == PW_DIRECTION_OUTPUT) {
|
if (stream->direction == PW_DIRECTION_OUTPUT) {
|
||||||
stream->read_index = pd->read_index;
|
stream->read_index = pd->read_index;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue