add new Session method to return the worst_latency_preroll() value rounded up to the nearest buffer size
This commit is contained in:
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user