NO-OP: reduce scope, return early
This commit is contained in:
parent
b9c29c478c
commit
02e5605cdd
|
@ -4313,8 +4313,9 @@ Route::update_signal_latency (bool apply_to_delayline)
|
||||||
void
|
void
|
||||||
Route::apply_latency_compensation ()
|
Route::apply_latency_compensation ()
|
||||||
{
|
{
|
||||||
if (_delayline) {
|
if (!_delayline) {
|
||||||
samplecnt_t old = _delayline->delay ();
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
samplecnt_t play_lat_in = _input->connected_latency (true);
|
samplecnt_t play_lat_in = _input->connected_latency (true);
|
||||||
samplecnt_t play_lat_out = _output->connected_latency (true);
|
samplecnt_t play_lat_out = _output->connected_latency (true);
|
||||||
|
@ -4330,7 +4331,6 @@ Route::apply_latency_compensation ()
|
||||||
|
|
||||||
_delayline->set_delay (latcomp > 0 ? latcomp : 0);
|
_delayline->set_delay (latcomp > 0 ? latcomp : 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Route::set_block_size (pframes_t nframes)
|
Route::set_block_size (pframes_t nframes)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user