mirror of
https://github.com/RustAudio/rodio
synced 2024-11-10 06:04:16 +00:00
Language and spelling fixes by @naglis
fix comment typo Co-authored-by: naglis <827324+naglis@users.noreply.github.com>
This commit is contained in:
parent
4237effbf4
commit
3f4b530a42
3 changed files with 2 additions and 4 deletions
|
@ -77,8 +77,6 @@ where
|
|||
|
||||
#[inline]
|
||||
fn try_seek(&mut self, pos: Duration) -> Result<(), SeekError> {
|
||||
// number of PCM samples per channel
|
||||
|
||||
// number of PCM samples per channel
|
||||
let samples = pos.as_secs_f32() * self.sample_rate() as f32;
|
||||
self.stream_reader.seek_absgp_pg(samples as u64)?;
|
||||
|
|
|
@ -206,7 +206,7 @@ impl Sink {
|
|||
/// This blocks between 0 and ~5 milliseconds.
|
||||
///
|
||||
/// As long as the *duration of the source is known* seeking saturates. This means
|
||||
/// when you try to seek beyong the length of the source this function will seek
|
||||
/// when you try to seek beyond the length of the source this function will seek
|
||||
/// to the end of the source instead.
|
||||
///
|
||||
/// If the duration of the source is known and the seek position lies beyond
|
||||
|
|
|
@ -360,7 +360,7 @@ where
|
|||
/// Attempts to seek to a given position in the current source.
|
||||
///
|
||||
/// As long as the duration of the source is known seeking saturates. That is
|
||||
/// when you seek beyong the sources length this function will seek to the
|
||||
/// when you seek beyond the sources length this function will seek to the
|
||||
/// end of the source instead.
|
||||
///
|
||||
/// If the duration of the source is known and the seek position lies beyond
|
||||
|
|
Loading…
Reference in a new issue