mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05:00
resample: take already queued sample into account
When asking for samples, take into account the amount of samples we already have converted.
This commit is contained in:
parent
51d44e9154
commit
88727afbd2
1 changed files with 1 additions and 1 deletions
|
|
@ -882,7 +882,7 @@ static int impl_node_process(void *object)
|
||||||
else
|
else
|
||||||
resample_update_rate(&this->resample, 1.0);
|
resample_update_rate(&this->resample, 1.0);
|
||||||
this->io_rate_match->delay = resample_delay(&this->resample);
|
this->io_rate_match->delay = resample_delay(&this->resample);
|
||||||
this->io_rate_match->size = resample_in_len(&this->resample, max);
|
this->io_rate_match->size = resample_in_len(&this->resample, max - outport->offset / sizeof(float));
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue