forked from len0rd/rockbox
The much-anticipated queue patch by Hardeep Sidhu. Queue a file by holding down PLAY on it while playing other music.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3040 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0e342181c3
commit
c78e1b07fe
10 changed files with 492 additions and 129 deletions
12
apps/wps.c
12
apps/wps.c
|
|
@ -38,6 +38,7 @@
|
|||
#include "main_menu.h"
|
||||
#include "ata.h"
|
||||
#include "screens.h"
|
||||
#include "playlist.h"
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
#include "icons.h"
|
||||
#include "peakmeter.h"
|
||||
|
|
@ -437,9 +438,14 @@ static bool update(void)
|
|||
global_settings.resume_offset != id3->offset ) {
|
||||
DEBUGF("R%X,%X (%X)\n", global_settings.resume_offset,
|
||||
id3->offset,id3);
|
||||
global_settings.resume_index = id3->index;
|
||||
global_settings.resume_offset = id3->offset;
|
||||
settings_save();
|
||||
|
||||
if (!playlist_get_resume_info(&global_settings.resume_index,
|
||||
&global_settings.queue_resume,
|
||||
&global_settings.queue_resume_index))
|
||||
{
|
||||
global_settings.resume_offset = id3->offset;
|
||||
settings_save();
|
||||
}
|
||||
}
|
||||
else if ( !id3 && track_changed ) {
|
||||
global_settings.resume_index = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue