forked from len0rd/rockbox
Cleaned up playblack.h header file and usage of it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17276 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a5d3029c82
commit
c97e503a10
6 changed files with 14 additions and 17 deletions
|
|
@ -45,7 +45,6 @@
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "screens.h"
|
#include "screens.h"
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
#include "playback.h"
|
|
||||||
#include "pcmbuf.h"
|
#include "pcmbuf.h"
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "bmp.h"
|
#include "bmp.h"
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "buffering.h"
|
#include "buffering.h"
|
||||||
#include "mp3_playback.h"
|
#include "mp3_playback.h"
|
||||||
#include "playback.h"
|
|
||||||
#include "backlight.h"
|
#include "backlight.h"
|
||||||
#include "ata.h"
|
#include "ata.h"
|
||||||
#include "talk.h"
|
#include "talk.h"
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "screens.h"
|
#include "screens.h"
|
||||||
|
#include "file.h"
|
||||||
|
#include "id3.h"
|
||||||
|
|
||||||
#define MAX_NAME 80 /* Max length of information strings */
|
#define MAX_NAME 80 /* Max length of information strings */
|
||||||
#define MAX_TRACKS 99 /* Max number of tracks in a cuesheet */
|
#define MAX_TRACKS 99 /* Max number of tracks in a cuesheet */
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,9 @@
|
||||||
#ifndef _METADATA_H
|
#ifndef _METADATA_H
|
||||||
#define _METADATA_H
|
#define _METADATA_H
|
||||||
|
|
||||||
#include "playback.h"
|
#include <stdbool.h>
|
||||||
|
#include "config.h"
|
||||||
|
#include "id3.h"
|
||||||
|
|
||||||
unsigned int probe_file_format(const char *filename);
|
unsigned int probe_file_format(const char *filename);
|
||||||
bool get_metadata(struct mp3entry* id3, int fd, const char* trackname);
|
bool get_metadata(struct mp3entry* id3, int fd, const char* trackname);
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,14 @@ enum filling_state {
|
||||||
STATE_FINISHED, /* all remaining tracks have been added */
|
STATE_FINISHED, /* all remaining tracks have been added */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if MEM > 1
|
||||||
|
#define MAX_TRACK 128
|
||||||
|
#else
|
||||||
|
#define MAX_TRACK 32
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define MAX_TRACK_MASK (MAX_TRACK-1)
|
||||||
|
|
||||||
/* As defined in plugins/lib/xxx2wav.h */
|
/* As defined in plugins/lib/xxx2wav.h */
|
||||||
#if MEM > 1
|
#if MEM > 1
|
||||||
#define MALLOC_BUFSIZE (512*1024)
|
#define MALLOC_BUFSIZE (512*1024)
|
||||||
|
|
|
||||||
|
|
@ -21,20 +21,7 @@
|
||||||
#define _PLAYBACK_H
|
#define _PLAYBACK_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include "config.h"
|
||||||
#include "id3.h"
|
|
||||||
#include "mp3data.h"
|
|
||||||
|
|
||||||
/* Not yet implemented. */
|
|
||||||
#define CODEC_SET_AUDIOBUF_WATERMARK 4
|
|
||||||
|
|
||||||
#if MEM > 1
|
|
||||||
#define MAX_TRACK 128
|
|
||||||
#else
|
|
||||||
#define MAX_TRACK 32
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MAX_TRACK_MASK (MAX_TRACK-1)
|
|
||||||
|
|
||||||
/* Functions */
|
/* Functions */
|
||||||
const char *get_codec_filename(int cod_spec);
|
const char *get_codec_filename(int cod_spec);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue