diff options
| author | Dave Chapman <dave@dchapman.com> | 2005-06-18 16:24:27 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2005-06-18 16:24:27 +0000 |
| commit | 961c9a3e4103e766f52ff1d7c2af2db6119c72ec (patch) | |
| tree | c4fd5b0ea3b7063315910fea159a590e74680ed4 /firmware/export | |
| parent | 2bfd2585a9cfb8541047a3f5eedbfd05fe36f9f9 (diff) | |
| download | rockbox-961c9a3e4103e766f52ff1d7c2af2db6119c72ec.zip rockbox-961c9a3e4103e766f52ff1d7c2af2db6119c72ec.tar.gz rockbox-961c9a3e4103e766f52ff1d7c2af2db6119c72ec.tar.bz2 rockbox-961c9a3e4103e766f52ff1d7c2af2db6119c72ec.tar.xz | |
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')
| -rw-r--r-- | firmware/export/id3.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/firmware/export/id3.h b/firmware/export/id3.h index 8a79cb0..9999981 100644 --- a/firmware/export/id3.h +++ b/firmware/export/id3.h @@ -19,8 +19,37 @@ #ifndef ID3_H #define ID3_H +#include "config.h" #include "file.h" +/* Audio file types. */ +/* NOTE: When adding new audio types, also add to codec_labels[] in id3.c */ +enum { + AFMT_UNKNOWN = 0, /* Unknown file format */ + +#if CONFIG_HWCODEC==MASNONE + AFMT_MPA_L1, /* MPEG Audio layer 1 */ +#endif + + AFMT_MPA_L2, /* MPEG Audio layer 2 */ + AFMT_MPA_L3, /* MPEG Audio layer 3 */ + +#if CONFIG_HWCODEC==MASNONE + AFMT_PCM_WAV, /* Uncompressed PCM in a WAV file */ + AFMT_OGG_VORBIS, /* Ogg Vorbis */ + AFMT_FLAC, /* FLAC */ + AFMT_MPC, /* Musepack */ + AFMT_AAC, /* AAC */ + AFMT_APE, /* Monkey's Audio */ + AFMT_WMA, /* Windows Media Audio */ + AFMT_A52, /* A/52 (aka AC3) audio */ + AFMT_REAL, /* Realaudio */ + AFMT_WAVPACK, /* WavPack */ +#endif + + AFMT_ENDMARKER /* THIS MUST BE THE LAST VALUE */ +}; + struct mp3entry { char path[MAX_PATH]; char *title; @@ -33,6 +62,7 @@ struct mp3entry { int tracknum; int version; int layer; + int codectype; int year; unsigned char id3version; unsigned char genre; @@ -76,5 +106,6 @@ enum { bool mp3info(struct mp3entry *entry, const char *filename, bool v1first); char* id3_get_genre(const struct mp3entry* id3); +char* id3_get_codec(const struct mp3entry* id3); #endif |