summaryrefslogtreecommitdiff
path: root/firmware/id3.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/id3.c')
-rw-r--r--firmware/id3.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index 5761380e60..74f1d28c5f 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -28,25 +28,10 @@
28#include <string.h> 28#include <string.h>
29#include <errno.h> 29#include <errno.h>
30#include <fcntl.h> 30#include <fcntl.h>
31#include <file.h>
32#include <types.h>
31 33
32struct mp3entry { 34#include "id3.h"
33 char *path;
34 char *title;
35 char *artist;
36 char *album;
37 int bitrate;
38 int frequency;
39 int id3v2len;
40 int id3v1len;
41 int filesize; /* in bytes */
42 int length; /* song length */
43};
44
45typedef struct mp3entry mp3entry;
46
47typedef unsigned char bool;
48#define TRUE 1
49#define FALSE 0
50 35
51/* Some utility macros used in getsonglength() */ 36/* Some utility macros used in getsonglength() */
52#define CHECKSYNC(x) (((x >> 21) & 0x07FF) == 0x7FF) 37#define CHECKSYNC(x) (((x >> 21) & 0x07FF) == 0x7FF)