mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Backport r24968
Make the buffer low-level watermark (and the related anti-skip setting) work again. Update the buffering 'base handle' as new tracks start playing, since this is needed to determine how much playable data is left in the buffer. Should fix the buffering problem reported in the forums (http://forums.rockbox.org/index.php?topic=24014.0), and also makes the usefl line in the buffering thread debug screen useful again. git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_5@24978 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
552bd156fd
commit
4d015624c5
1 changed files with 2 additions and 0 deletions
|
@ -1565,6 +1565,7 @@ static int audio_check_new_track(void)
|
||||||
|
|
||||||
/* Move to the new track */
|
/* Move to the new track */
|
||||||
track_ridx = (track_ridx + ci.new_track) & MAX_TRACK_MASK;
|
track_ridx = (track_ridx + ci.new_track) & MAX_TRACK_MASK;
|
||||||
|
buf_set_base_handle(CUR_TI->audio_hid);
|
||||||
|
|
||||||
|
|
||||||
if (automatic_skip)
|
if (automatic_skip)
|
||||||
|
@ -1723,6 +1724,7 @@ static void audio_play_start(size_t offset)
|
||||||
|
|
||||||
sound_set_volume(global_settings.volume);
|
sound_set_volume(global_settings.volume);
|
||||||
track_widx = track_ridx = 0;
|
track_widx = track_ridx = 0;
|
||||||
|
buf_set_base_handle(-1);
|
||||||
|
|
||||||
/* Clear all track entries. */
|
/* Clear all track entries. */
|
||||||
for (i = 0; i < MAX_TRACK; i++) {
|
for (i = 0; i < MAX_TRACK; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue