Removed try_seek() from chirp.

This commit is contained in:
Jamie Hardt 2024-09-14 09:39:02 -07:00
parent e060bdd35c
commit f3e77f43ec

View file

@ -52,7 +52,7 @@ impl Iterator for Chirp {
self.elapsed_samples += 1;
let freq = self.start_frequency * (1.0 - ratio) + self.end_frequency * ratio;
let t = (i as f32 / self.sample_rate() as f32) * TAU * freq;
Some( t.sin() )
Some(t.sin())
}
}
@ -73,8 +73,4 @@ impl Source for Chirp {
let secs: f64 = self.total_samples as f64 / self.sample_rate.0 as f64;
Some(Duration::new(1, 0).mul_f64(secs))
}
fn try_seek(&mut self, pos: Duration) -> Result<(), super::SeekError> {
todo!()
}
}