diff libgsmfr2/dhf.c @ 278:c94d9a336e8f

libgsmfr2: implement DHF const datum
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Apr 2024 04:10:02 +0000
parents libgsmfr2/silence_frame.c@a33edf624061
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libgsmfr2/dhf.c	Sun Apr 14 04:10:02 2024 +0000
@@ -0,0 +1,16 @@
+/*
+ * Implementation of the optional decoder homing feature requires matching
+ * the input RTP-encoded GSM-FR frame against the known decoder homing frame.
+ * This C module provides this DHF as an API-exported const array.
+ */
+
+#include <stdint.h>
+#include "tw_gsmfr.h"
+
+const uint8_t gsmfr_decoder_homing_frame[GSMFR_RTP_FRAME_LEN] = {
+	0xD2, 0x57, 0x7A, 0x1C, 0xDA,
+	0x50, 0x00, 0x49, 0x24, 0x92, 0x49, 0x24,
+	0x50, 0x00, 0x49, 0x24, 0x92, 0x49, 0x24,
+	0x50, 0x00, 0x49, 0x24, 0x92, 0x49, 0x24,
+	0x50, 0x00, 0x49, 0x23, 0x92, 0x49, 0x24,
+};