From f88e566576224a2fda9dc5a8899f52f277f537a6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 7 Mar 2015 14:50:02 +0100 Subject: [PATCH] fix copy/edit in 659a8a2 --- libs/backends/dummy/dummy_audiobackend.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/backends/dummy/dummy_audiobackend.cc b/libs/backends/dummy/dummy_audiobackend.cc index 885a85628b..7b5f41bc89 100644 --- a/libs/backends/dummy/dummy_audiobackend.cc +++ b/libs/backends/dummy/dummy_audiobackend.cc @@ -1058,15 +1058,15 @@ DummyAudioBackend::get_latency_range (PortEngine::PortHandle port, bool for_play if (p->is_physical() && p->is_terminal()) { if (p->is_input() && for_playback) { const size_t l_in = _samples_per_period * .25; - r.min += _samples_per_period; - r.max += _samples_per_period; + r.min += l_in; + r.max += l_in; } if (p->is_output() && !for_playback) { /* with 'Loopback' there is exactly once cycle latency, divide it between In + Out; */ const size_t l_in = _samples_per_period * .25; const size_t l_out = _samples_per_period - l_in; - r.min += _samples_per_period; - r.max += _samples_per_period; + r.min += l_out; + r.max += l_out; } } return r;