diff options
Diffstat (limited to 'firmware/export/enc_base.h')
-rw-r--r-- | firmware/export/enc_base.h | 16 |
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 |