From d64ed22adde3150d09be50387a73dc5e6fc64923 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sun, 11 Feb 2007 22:31:08 +0000 Subject: [PATCH] FS #6646 from Ben Keroack - move the recently added AFMT_SPEEX to the end of the enum. The values here are used for the %fc WPS tag, so new codecs MUST be added at the end. Also add a comment to that effect. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12275 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/id3.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/export/id3.h b/firmware/export/id3.h index 83fc2cdaa5..c016bd520c 100644 --- a/firmware/export/id3.h +++ b/firmware/export/id3.h @@ -24,6 +24,9 @@ #include "file.h" /* Audio file types. */ +/* NOTE: The values of the AFMT_* items are used for the %fc tag in the WPS + - so new entries MUST be added to the end to maintain compatibility. + */ enum { AFMT_UNKNOWN = 0, /* Unknown file format */ @@ -46,9 +49,9 @@ enum AFMT_AAC, /* Advanced Audio Coding (AAC) in M4A container */ AFMT_SHN, /* Shorten */ AFMT_SID, /* SID File Format */ - AFMT_SPEEX, /* Ogg Speex speech */ AFMT_ADX, /* ADX File Format */ AFMT_NSF, /* NESM (NES Sound Format) */ + AFMT_SPEEX, /* Ogg Speex speech */ #endif /* add new formats at any index above this line to have a sensible order -