Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrGlad committed Nov 8, 2023
1 parent f1d2ffb commit 1e989f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/midi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fn usec_per_tick(timing: &Timing) -> u32 {
}

fn ticks_per_beat(timing: &Timing) -> u32 {
// TODO Also maybe support Tempo messages. Tempo messages set micros per beat.
// Also maybe support Tempo messages. Tempo messages set micros per beat.
match timing {
Timing::Metrical(d) => d.as_int() as u32,
_ => panic!("Timing format {:#?} is not supported.", timing),
Expand All @@ -106,10 +106,10 @@ impl EventSource for SmfSource {

fn seek(&mut self, at: &Time) {
assert!(
self.running_at > *at,
self.running_at >= *at,
"SmfSource back reset is not supported."
);
self.running_at = at.to_owned();
self.running_at = *at;
}

fn next(&mut self, at: &Time, queue: &mut BinaryHeap<EngineEvent>) {
Expand Down

0 comments on commit 1e989f6

Please sign in to comment.