Player::try_seek docs are wrong about only blocking up to ~5ms

Open Beginner friendly
#896 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
73/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Quiet
Tech stack
rust
Domain
documentation

Research direction

Read the try_seek() documentation in src/player.rs around line 230 alongside the periodic access implementation at lines 137–138 and the periodic_access() documentation in src/source/mod.rs around lines 547–558. Update the stated blocking time to account for playback speed, then check that the wording matches the documented access rate.

Written by the indexing model from the issue text.

Description

This is stated here:
https://github.com/RustAudio/rodio/blob/ee3c21f2f3d926110706a2780658d098831c1ed9/src/player.rs#L230

Which is referring to the periodic access here:
https://github.com/RustAudio/rodio/blob/ee3c21f2f3d926110706a2780658d098831c1ed9/src/player.rs#L137-L138

However, compare this to the documentation for periodic_access().:
https://github.com/RustAudio/rodio/blob/ee3c21f2f3d926110706a2780658d098831c1ed9/src/source/mod.rs#L547-L558

Since the access rate is based on playback speed, if I play my music file at half speed, try_seek() I could be waiting for the next access up to ~10ms (or even more for lower playback rates).


This is related to, but technically distinct from these other two seek issues I've found: #638 #876.

Dominant language
Rust
Stars
2.5k
Forks
338
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RustAudio/rodio

All issues in RustAudio/rodio

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.