Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slider bar is inaccurate #40

Closed
nednoodlehead opened this issue May 23, 2024 · 1 comment
Closed

slider bar is inaccurate #40

nednoodlehead opened this issue May 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nednoodlehead
Copy link
Owner

so usually the concept is that you calculate the position of the bar by doing something like:
self.scrubber = (music.total_len - music.current_len) * 10

(10 being the increments per second, also assuming that total_len and current_len are in seconds), which gives us an accurate sliding bar position.

Currently, it is just based off of time.sleeps. so every 95ms, the bar moves a bit. And while paused, it goes into a loop where it checks every 10ms if we are playing. This is not too bad, but the bar is usually a second or so off (from a 30sec video)

Rodio has no way yet of calculating this. sort of dont want to maintain my own rodio fork with that pr. since i have no damn clue how it works...

@nednoodlehead nednoodlehead added the bug Something isn't working label Jul 16, 2024
@nednoodlehead
Copy link
Owner Author

this is now possible with the latest stable release of rodio (one day......)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant