diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-08-29 21:15:27 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-08-29 21:15:27 +0000 |
commit | d6c054575b4561b4c657565ecb4ff82565fa6c78 (patch) | |
tree | c05a7f619a2580a8ae3ee29e863f076d1065c398 /firmware/id3.c | |
parent | 99a0598c284471342fcda1fdcba90d4b666bfbb3 (diff) |
Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and SWCODEC, respectively.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/id3.c')
-rw-r--r-- | firmware/id3.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/id3.c b/firmware/id3.c index 90500663c1..8685d86790 100644 --- a/firmware/id3.c +++ b/firmware/id3.c @@ -83,14 +83,14 @@ static const char* const codec_labels[] = { "ERR", /* Invalid codec type */ "???", /* Unknown file format */ -#if CONFIG_HWCODEC==MASNONE +#if CONFIG_CODEC==SWCODEC "MP1", /* MPEG Audio layer 1 */ #endif "MP2", /* MPEG Audio layer 2 */ "MP3", /* MPEG Audio layer 3 */ -#if CONFIG_HWCODEC==MASNONE +#if CONFIG_CODEC==SWCODEC "WAV", /* Uncompressed PCM in a WAV file */ "OGG", /* Ogg Vorbis */ "FLAC", /* FLAC */ @@ -310,7 +310,7 @@ static int parsegenre( struct mp3entry* entry, char* tag, int bufferpos ) } } -#if CONFIG_HWCODEC == MASNONE +#if CONFIG_CODEC == SWCODEC /* parse user defined text, looking for replaygain information. */ static int parseuser( struct mp3entry* entry, char* tag, int bufferpos ) { @@ -352,7 +352,7 @@ static const struct tag_resolver taglist[] = { { "TCOM", 4, offsetof(struct mp3entry, composer), NULL }, { "TCON", 4, offsetof(struct mp3entry, genre_string), &parsegenre }, { "TCO", 3, offsetof(struct mp3entry, genre_string), &parsegenre }, -#if CONFIG_HWCODEC == MASNONE +#if CONFIG_CODEC == SWCODEC { "TXXX", 4, 0, &parseuser }, #endif }; @@ -885,7 +885,7 @@ static int getsonglength(int fd, struct mp3entry *entry) entry->version = info.version; entry->layer = info.layer; switch(entry->layer) { -#if CONFIG_HWCODEC==MASNONE +#if CONFIG_CODEC==SWCODEC case 0: entry->codectype=AFMT_MPA_L1; break; @@ -947,7 +947,7 @@ bool mp3info(struct mp3entry *entry, const char *filename, bool v1first) if(-1 == fd) return true; -#if CONFIG_HWCODEC != MASNONE +#if CONFIG_CODEC != SWCODEC memset(entry, 0, sizeof(struct mp3entry)); #endif |