diff libgsmfr2/silence_frame.c @ 256:a33edf624061

libgsmfr2: start with API definition and port of libgsmfrp code
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Apr 2024 20:49:53 +0000
parents libgsmfrp/silence_frame.c@61cb83bd11ec
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libgsmfr2/silence_frame.c	Fri Apr 12 20:49:53 2024 +0000
@@ -0,0 +1,16 @@
+/*
+ * Table 1 in section 6 of 3GPP TS 46.011 specifies a silence frame
+ * in the form of GSM 06.10 parameters; here we implement this exact
+ * silence frame in libgsm encoding, which is also RTP encoding.
+ */
+
+#include <stdint.h>
+#include "tw_gsmfr.h"
+
+const uint8_t gsmfr_preproc_silence_frame[GSMFR_RTP_FRAME_LEN] = {
+	0xDA, 0xA7, 0xAA, 0xA5, 0x1A,
+	0x50, 0x20, 0x38, 0xE4, 0x6D, 0xB9, 0x1B,
+	0x50, 0x20, 0x38, 0xE4, 0x6D, 0xB9, 0x1B,
+	0x50, 0x20, 0x38, 0xE4, 0x6D, 0xB9, 0x1B,
+	0x50, 0x20, 0x38, 0xE4, 0x6D, 0xB9, 0x1B,
+};