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
diff --git a/firmware/export/id3.h b/firmware/export/id3.h
index 83fc2cd..c016bd5 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 @@
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 -