SWCODEC Encoders: Better declarations of chunk flags. Mark constants as unsigned long to match structure variable type.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12252 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-02-10 07:19:32 +00:00
parent c7a1cec219
commit e8fe1f596f

View file

@ -143,16 +143,16 @@ struct encoder_config
}; };
/** Encoder chunk macros and definitions **/ /** Encoder chunk macros and definitions **/
#define CHUNKF_START_FILE 0x0001 /* This chunk starts a new file */ #define CHUNKF_START_FILE 0x0001ul /* This chunk starts a new file */
#define CHUNKF_END_FILE 0x0002 /* This chunk ends the current file */ #define CHUNKF_END_FILE 0x0002ul /* This chunk ends the current file */
#define CHUNKF_PRERECORD 0x0010 /* This chunk is prerecord data, #define CHUNKF_PRERECORD 0x0010ul /* This chunk is prerecord data,
a new file could start anytime */ a new file could start anytime */
#define CHUNKF_ABORT 0x0020 /* Encoder should not finish this #define CHUNKF_ABORT 0x0020ul /* Encoder should not finish this
chunk */ chunk */
#define CHUNKF_ERROR 0x80000000 /* An error has occured (passed to/ #define CHUNKF_ERROR (~0ul ^ (~0ul >> 1)) /* An error has occured
from encoder). Use the sign bit to (passed to/from encoder). Use the
check (long)flags < 0. */ sign bit to check (long)flags < 0. */
#define CHUNKF_ALLFLAGS 0x80000033 #define CHUNKF_ALLFLAGS (0x0033ul | CHUNKF_ERROR)
/* Header at the beginning of every encoder chunk */ /* Header at the beginning of every encoder chunk */
#ifdef PCMREC_PARANOID #ifdef PCMREC_PARANOID