You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
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...
The text was updated successfully, but these errors were encountered: