rename frame to sample everywhere

This commit is contained in:
🪞👃🪞 2024-10-26 20:14:08 +03:00
parent 063706017e
commit d77fe325b0
7 changed files with 40 additions and 38 deletions

View file

@ -352,7 +352,7 @@ impl<E: Engine> PhrasePlayer<E> {
pub fn frames_since_start (&self) -> Option<usize> {
self.phrase.as_ref()
.map(|(started,_)|started.load(Ordering::Relaxed))
.map(|started|started - self.clock.frame())
.map(|started|started - self.clock.sample())
}
}
/// Displays and edits phrase length