mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
bluez5: remove resampler delay fudge factor
The resampler delay was off by one sample, so remove the corresponding fudge factor here. This matters for BAP output synchronization. The resampler has also some fractional delay, so there can still be sub-sample offset between the original and resampled timelines. This is not currently taken into account.
This commit is contained in:
parent
2c2bed2aeb
commit
b952cfbe38
1 changed files with 0 additions and 1 deletions
|
|
@ -544,7 +544,6 @@ static uint64_t get_reference_time(struct impl *this, uint64_t *duration_ns_ret)
|
|||
if (port->rate_match && this->position && resampling) {
|
||||
t -= (uint64_t)port->rate_match->delay * SPA_NSEC_PER_SEC
|
||||
/ this->position->clock.rate.denom;
|
||||
t += SPA_NSEC_PER_SEC / port->current_format.info.raw.rate;
|
||||
}
|
||||
|
||||
return t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue