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; } /******************************************************************************/