From c87bec07cdc934409e471fa3e25674c2edf73d22 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 11 Jan 2020 23:59:24 +0100 Subject: [PATCH] Fix thinko in eee01188 (engine pulse spacing) --- libs/backends/dummy/dummy_audiobackend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/backends/dummy/dummy_audiobackend.cc b/libs/backends/dummy/dummy_audiobackend.cc index 8fac00b619..a9d39478fd 100644 --- a/libs/backends/dummy/dummy_audiobackend.cc +++ b/libs/backends/dummy/dummy_audiobackend.cc @@ -1714,7 +1714,7 @@ DummyPort::pulse_position () const { samplecnt_t sr = _dummy_backend.sample_rate (); samplepos_t st = _dummy_backend.sample_time_at_cycle_start(); - return st % sr; + return (sr - (st % sr)) % sr; } /******************************************************************************/