summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-02-10 07:19:32 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-02-10 07:19:32 +0000
commite8fe1f596fe6df93f5d27b49e78997f80c08022b (patch)
tree43cf11391df3234fc73c84d3bf35344f960ee9c2
parentc7a1cec2198815b695cdda927cdda73a5249e5a2 (diff)
downloadrockbox-e8fe1f596fe6df93f5d27b49e78997f80c08022b.tar.gz
rockbox-e8fe1f596fe6df93f5d27b49e78997f80c08022b.zip
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
-rw-r--r--firmware/export/enc_base.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/export/enc_base.h b/firmware/export/enc_base.h
index 8d1e6fa11e..e1baa2545a 100644
--- a/firmware/export/enc_base.h
+++ b/firmware/export/enc_base.h
@@ -143,16 +143,16 @@ struct encoder_config
143}; 143};
144 144
145/** Encoder chunk macros and definitions **/ 145/** Encoder chunk macros and definitions **/
146#define CHUNKF_START_FILE 0x0001 /* This chunk starts a new file */ 146#define CHUNKF_START_FILE 0x0001ul /* This chunk starts a new file */
147#define CHUNKF_END_FILE 0x0002 /* This chunk ends the current file */ 147#define CHUNKF_END_FILE 0x0002ul /* This chunk ends the current file */
148#define CHUNKF_PRERECORD 0x0010 /* This chunk is prerecord data, 148#define CHUNKF_PRERECORD 0x0010ul /* This chunk is prerecord data,
149 a new file could start anytime */ 149 a new file could start anytime */
150#define CHUNKF_ABORT 0x0020 /* Encoder should not finish this 150#define CHUNKF_ABORT 0x0020ul /* Encoder should not finish this
151 chunk */ 151 chunk */
152#define CHUNKF_ERROR 0x80000000 /* An error has occured (passed to/ 152#define CHUNKF_ERROR (~0ul ^ (~0ul >> 1)) /* An error has occured
153 from encoder). Use the sign bit to 153 (passed to/from encoder). Use the
154 check (long)flags < 0. */ 154 sign bit to check (long)flags < 0. */
155#define CHUNKF_ALLFLAGS 0x80000033 155#define CHUNKF_ALLFLAGS (0x0033ul | CHUNKF_ERROR)
156 156
157/* Header at the beginning of every encoder chunk */ 157/* Header at the beginning of every encoder chunk */
158#ifdef PCMREC_PARANOID 158#ifdef PCMREC_PARANOID