Skip to content

Commit

Permalink
Rustfmt and a doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
iluvcapra committed Oct 1, 2024
1 parent a1fa144 commit 322bdd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/source/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ pub use self::periodic::PeriodicAccess;
pub use self::position::TrackPosition;
pub use self::repeat::Repeat;
pub use self::samples_converter::SamplesConverter;
pub use self::signal_generator::{Function, SignalGenerator};
pub use self::sine::SineWave;
pub use self::skip::SkipDuration;
pub use self::skippable::Skippable;
pub use self::spatial::Spatial;
pub use self::speed::Speed;
pub use self::stoppable::Stoppable;
pub use self::take::TakeDuration;
pub use self::signal_generator::{Function, SignalGenerator};
pub use self::uniform::UniformSourceIterator;
pub use self::zero::Zero;

Expand All @@ -59,14 +59,14 @@ mod periodic;
mod position;
mod repeat;
mod samples_converter;
mod signal_generator;
mod sine;
mod skip;
mod skippable;
mod spatial;
mod speed;
mod stoppable;
mod take;
mod signal_generator;
mod uniform;
mod zero;

Expand Down
7 changes: 5 additions & 2 deletions src/source/sine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ impl Source for SineWave {
None
}

/// `try_seek()` does nothing on the sine generator. If you need to
/// generate a sine tone with a precise phase or sample offset, consider
/// using `skip::skip_samples()`.
#[inline]
fn try_seek(&mut self, pos: Duration) -> Result<(), SeekError> {
self.test_sine.try_seek(pos)
fn try_seek(&mut self, _: Duration) -> Result<(), SeekError> {
Ok(())
}
}

0 comments on commit 322bdd5

Please sign in to comment.