mirror of
https://github.com/RustAudio/rodio
synced 2025-03-04 06:57:16 +00:00
Removed try_seek()
from chirp.
This commit is contained in:
parent
e060bdd35c
commit
f3e77f43ec
1 changed files with 1 additions and 5 deletions
|
@ -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!()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue