mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 05:36:31 +01:00
add new Session method to return the worst_latency_preroll() value rounded up to the nearest buffer size
This commit is contained in:
parent
ca36d7cc2f
commit
5cdeb2401f
2 changed files with 7 additions and 0 deletions
|
|
@ -504,6 +504,7 @@ public:
|
|||
samplecnt_t worst_input_latency () const { return _worst_input_latency; }
|
||||
samplecnt_t worst_route_latency () const { return _worst_route_latency; }
|
||||
samplecnt_t worst_latency_preroll () const;
|
||||
samplecnt_t worst_latency_preroll_buffer_size_ceil () const;
|
||||
|
||||
PBD::Signal0<void> LatencyUpdated;
|
||||
|
||||
|
|
|
|||
|
|
@ -1675,6 +1675,12 @@ Session::worst_latency_preroll () const
|
|||
return _worst_output_latency + _worst_input_latency;
|
||||
}
|
||||
|
||||
samplecnt_t
|
||||
Session::worst_latency_preroll_buffer_size_ceil () const
|
||||
{
|
||||
return lrintf (ceil ((_worst_output_latency + _worst_input_latency) / (float) current_block_size) * current_block_size);
|
||||
}
|
||||
|
||||
void
|
||||
Session::unset_play_range ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue