Fix thinko in eee01188 (engine pulse spacing)

This commit is contained in:
Robin Gareus
2020-01-11 23:59:24 +01:00
parent e508bb1396
commit c87bec07cd

View File

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