summaryrefslogtreecommitdiff
path: root/firmware/export/enc_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/enc_base.h')
-rw-r--r--firmware/export/enc_base.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/enc_base.h b/firmware/export/enc_base.h
index 1be796ec8f..8d1e6fa11e 100644
--- a/firmware/export/enc_base.h
+++ b/firmware/export/enc_base.h
@@ -152,10 +152,18 @@ struct encoder_config
152#define CHUNKF_ERROR 0x80000000 /* An error has occured (passed to/ 152#define CHUNKF_ERROR 0x80000000 /* An error has occured (passed to/
153 from encoder). Use the sign bit to 153 from encoder). Use the sign bit to
154 check (long)flags < 0. */ 154 check (long)flags < 0. */
155#define CHUNKF_ALLFLAGS 0x80000033
155 156
156/* Header at the beginning of every encoder chunk */ 157/* Header at the beginning of every encoder chunk */
158#ifdef PCMREC_PARANOID
159#define ENC_CHUNK_MAGIC H_TO_BE32(('P' << 24) | ('T' << 16) | ('Y' << 8) | 'R')
160#endif
157struct enc_chunk_hdr 161struct enc_chunk_hdr
158{ 162{
163#ifdef PCMREC_PARANOID
164 unsigned long id; /* overflow detection - 'PTYR' - acronym for
165 "PTYR Tells You Right" ;) */
166#endif
159 unsigned long flags; /* in/out: flags used by encoder and file 167 unsigned long flags; /* in/out: flags used by encoder and file
160 writing */ 168 writing */
161 size_t enc_size; /* out: amount of encoder data written to 169 size_t enc_size; /* out: amount of encoder data written to