mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
remove PhrasesControl trait
This commit is contained in:
parent
d1fdc7f8b6
commit
4fdc3911e4
10 changed files with 64 additions and 68 deletions
|
|
@ -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<()> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue