This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8029 - Selecting a buffered track in the current playlist forces a rebuffer
Attached to Project:
Rockbox
Opened by Steve Bavin (pondlife) - Friday, 26 October 2007, 15:17 GMT+1
Opened by Steve Bavin (pondlife) - Friday, 26 October 2007, 15:17 GMT+1
|
DetailsRecipe:
1) Play an album. Wait until buffering completes. 2) Skip from track 1 to track 2. No buffering occurs. 3) Skip from track 2 to track 1. No buffering occurs. 4) In the playlist viewer, select track 2. Rebuffering occurs, even though the track is buffered. The same problem occurs in the opposite direction (e.g. after step 2, it should be possible to switch to track 1 using the playlist viewer without rebuffering). |
This task depends upon
This isn't a bug introduced by MoB. It's due to the fact that selecting a track in the playlist calls audio_play(), which stops and restarts playback. Fixing this isn't trivial and (IMHO) falls into the scope of a big rewrite of playback.c.
I know this isn't a new problem, but with the new buffering code it should be easier to improve. Better if it could be handled entirely within buffering.c; there's no reason to clear the buffer just because playback is restarted, and if playback then requests a file that's still buffered then there shouldbe no need for a disk read...
I had always wondered about this, since the very beginning.... Nice to hear you explain something about it Nicolas.