remove PhrasesControl trait

This commit is contained in:
🪞👃🪞 2024-11-26 17:46:14 +01:00
parent d1fdc7f8b6
commit 4fdc3911e4
10 changed files with 64 additions and 68 deletions

View file

@ -54,7 +54,11 @@ pub trait ClockApi: Send + Sync {
fn next_launch_pulse (&self) -> usize {
let sync = self.sync().get() as usize;
let pulse = self.current().pulse.get() as usize;
if pulse % sync == 0 { pulse } else { (pulse / sync + 1) * sync }
if pulse % sync == 0 {
pulse
} else {
(pulse / sync + 1) * sync
}
}
fn play_from (&mut self, start: Option<u32>) -> Usually<()> {