try_seek is impossible to use with non-constant speed

Open
#638 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Start by tracing the try_seek implementation and how playback speed changes are stored; the issue does not name files or tests. The reported problem is that seeking uses the current speed for the whole elapsed interval. Done means seeking accounts for prior speed changes, or the behavior is simplified as the issue suggests; the API impact needs a design decision.

Written by the indexing model from the issue text.

Description

bug

It takes the current speed into account but not what it has been the past t seconds. So if my speed was 0.5 and now its 2 try_seek will assume it has always been 2.

Correcting for this requires speed to keep track of all the speed changes.

possible fix:
Make speed's try_seek behavior configurable. Or for now disable all the fancy stuff.

This breaks the current API but I would say the current API is so broken its okay.

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.