mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Fix edge-case pre-roll required for looping
This is mainly for the benefit of Mixbus, where input_latency is not propagated upwards from the master bus (no direct connection). In Ardour's case _worst_input_latency >= _worst_route_latency unless a given track with latent plugin is not connected. Previously looping became out of sync (normal playback was not affected) when a track had a latent plugin.
This commit is contained in:
parent
803ff507ab
commit
8a8ae7069e
1 changed files with 1 additions and 1 deletions
|
|
@ -1728,7 +1728,7 @@ Session::worst_latency_preroll () const
|
||||||
samplecnt_t
|
samplecnt_t
|
||||||
Session::worst_latency_preroll_buffer_size_ceil () const
|
Session::worst_latency_preroll_buffer_size_ceil () const
|
||||||
{
|
{
|
||||||
return lrintf (ceil ((_worst_output_latency + _worst_input_latency) / (float) current_block_size) * current_block_size);
|
return lrintf (ceil ((_worst_output_latency + max (_worst_route_latency, _worst_input_latency)) / (float) current_block_size) * current_block_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue