after sink is emptied get_pos still returns non zero value

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Start by reading the Sink implementation and the code behind get_pos; the issue does not name a file or test. Reproduce the behavior after the queue is emptied, then determine whether the position should reset in that case. Done means get_pos returns the expected position after the sink has no queued audio, with a regression test covering it.

Written by the indexing model from the issue text.

Description

I don't know if this behavior is intended, but because of that i can't keep an actual pos value for my own use, because when Sink is emptied get_pos still yields non zero value. I think that Sink should reset its pos if there is nothing in the queue.

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.