summaryrefslogtreecommitdiff
path: root/firmware/export/id3.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-06-18 16:24:27 +0000
committerDave Chapman <dave@dchapman.com>2005-06-18 16:24:27 +0000
commit961c9a3e4103e766f52ff1d7c2af2db6119c72ec (patch)
treec4fd5b0ea3b7063315910fea159a590e74680ed4 /firmware/export/id3.h
parent2bfd2585a9cfb8541047a3f5eedbfd05fe36f9f9 (diff)
downloadrockbox-961c9a3e4103e766f52ff1d7c2af2db6119c72ec.tar.gz
rockbox-961c9a3e4103e766f52ff1d7c2af2db6119c72ec.zip
Added %fc WPS tag to display codec type - moved codectype from track_info struct into mp3info struct, initialise it on MAS platforms, and add it to the WPS.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6748 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/id3.h')
-rw-r--r--firmware/export/id3.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/firmware/export/id3.h b/firmware/export/id3.h
index 8a79cb0ce1..99999817c2 100644
--- a/firmware/export/id3.h
+++ b/firmware/export/id3.h
@@ -19,8 +19,37 @@
19#ifndef ID3_H 19#ifndef ID3_H
20#define ID3_H 20#define ID3_H
21 21
22#include "config.h"
22#include "file.h" 23#include "file.h"
23 24
25/* Audio file types. */
26/* NOTE: When adding new audio types, also add to codec_labels[] in id3.c */
27enum {
28 AFMT_UNKNOWN = 0, /* Unknown file format */
29
30#if CONFIG_HWCODEC==MASNONE
31 AFMT_MPA_L1, /* MPEG Audio layer 1 */
32#endif
33
34 AFMT_MPA_L2, /* MPEG Audio layer 2 */
35 AFMT_MPA_L3, /* MPEG Audio layer 3 */
36
37#if CONFIG_HWCODEC==MASNONE
38 AFMT_PCM_WAV, /* Uncompressed PCM in a WAV file */
39 AFMT_OGG_VORBIS, /* Ogg Vorbis */
40 AFMT_FLAC, /* FLAC */
41 AFMT_MPC, /* Musepack */
42 AFMT_AAC, /* AAC */
43 AFMT_APE, /* Monkey's Audio */
44 AFMT_WMA, /* Windows Media Audio */
45 AFMT_A52, /* A/52 (aka AC3) audio */
46 AFMT_REAL, /* Realaudio */
47 AFMT_WAVPACK, /* WavPack */
48#endif
49
50 AFMT_ENDMARKER /* THIS MUST BE THE LAST VALUE */
51};
52
24struct mp3entry { 53struct mp3entry {
25 char path[MAX_PATH]; 54 char path[MAX_PATH];
26 char *title; 55 char *title;
@@ -33,6 +62,7 @@ struct mp3entry {
33 int tracknum; 62 int tracknum;
34 int version; 63 int version;
35 int layer; 64 int layer;
65 int codectype;
36 int year; 66 int year;
37 unsigned char id3version; 67 unsigned char id3version;
38 unsigned char genre; 68 unsigned char genre;
@@ -76,5 +106,6 @@ enum {
76 106
77bool mp3info(struct mp3entry *entry, const char *filename, bool v1first); 107bool mp3info(struct mp3entry *entry, const char *filename, bool v1first);
78char* id3_get_genre(const struct mp3entry* id3); 108char* id3_get_genre(const struct mp3entry* id3);
109char* id3_get_codec(const struct mp3entry* id3);
79 110
80#endif 111#endif