diff ffstools/tiaud/binstruct.h @ 834:c458e33060bf

ffstools/tiaud: prep for adding support for new AEC
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 30 Jul 2021 00:10:13 +0000
parents 568e2a2b49c8
children
line wrap: on
line diff
--- a/ffstools/tiaud/binstruct.h	Tue Jun 22 02:28:18 2021 +0000
+++ b/ffstools/tiaud/binstruct.h	Fri Jul 30 00:10:13 2021 +0000
@@ -16,9 +16,12 @@
 	uint16_t	speaker_fir[32];
 	int8_t		sidetone_gain;
 	uint8_t		pad4[3];
-	uint16_t	aec_words[6];
+	uint16_t	aec_words[12];
 };
 
+#define	MODE_FILE_SIZE_NEWAEC	(sizeof(struct audio_cfg_bin))
+#define	MODE_FILE_SIZE_OLDAEC	(sizeof(struct audio_cfg_bin) - 12)
+
 /* mic_mode byte */
 #define AUDIO_MICROPHONE_HANDHELD   (0)
 #define AUDIO_MICROPHONE_HANDFREE   (1)