mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
"Next/Previous jpeg from within the JPEG viewer" addition by Alexander Spyridakis, modified a bit by me
Also tries to use the plugin buffer instead of the audio buffer on the platforms with more than 130kb plugin buffer size (thus not stopping the music playback). If the free buffer from the plugin buffer is not enough, asks for stopping playback. Needs a little more work, but seems stable as it is. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8728 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3ba5a0b24a
commit
cc6f37b8d8
5 changed files with 342 additions and 86 deletions
|
|
@ -33,18 +33,18 @@
|
|||
|
||||
#define FILERECORD2OFFSET(_x_) (rb->tagdbheader->filestart + _x_ * FILEENTRY_SIZE)
|
||||
|
||||
struct entry *currententry;
|
||||
struct dbentry *currententry;
|
||||
struct dbglobals dbglobal;
|
||||
static struct entry *entryarray;
|
||||
static struct dbentry *entryarray;
|
||||
|
||||
int database_init() {
|
||||
char *p;
|
||||
unsigned int i;
|
||||
// allocate room for all entries
|
||||
entryarray=(struct entry *)my_malloc(sizeof(struct entry)*rb->tagdbheader->filecount);
|
||||
entryarray=(struct dbentry *)my_malloc(sizeof(struct dbentry)*rb->tagdbheader->filecount);
|
||||
p=(char *)entryarray;
|
||||
// zero all entries.
|
||||
for(i=0;i<sizeof(struct entry)*rb->tagdbheader->filecount;i++)
|
||||
for(i=0;i<sizeof(struct dbentry)*rb->tagdbheader->filecount;i++)
|
||||
*(p++)=0;
|
||||
if(!*rb->tagdb_initialized) {
|
||||
if(!rb->tagdb_init()) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ struct dbglobals {
|
|||
int currententryindex;
|
||||
};
|
||||
|
||||
struct entry {
|
||||
struct dbentry {
|
||||
int loadedfiledata,
|
||||
loadedsongdata,
|
||||
loadedrundbdata,
|
||||
|
|
@ -50,7 +50,7 @@ struct entry {
|
|||
short samplerate;
|
||||
};
|
||||
|
||||
extern struct entry *currententry;
|
||||
extern struct dbentry *currententry;
|
||||
extern struct dbglobals dbglobal;
|
||||
|
||||
int database_init(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue