diff host.h @ 0:9008dbc8ca74

import original C code from GSM 06.06
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 Jun 2024 23:27:16 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/host.h	Fri Jun 14 23:27:16 2024 +0000
@@ -0,0 +1,29 @@
+#ifndef __HOSTGSM
+#define __HOSTGSM
+
+#include <stdio.h>
+#include "typedefs.h"
+
+/*_________________________________________________________________________
+ |                                                                         |
+ |                           Function Prototypes                           |
+ |_________________________________________________________________________|
+*/
+
+void   fillBitAlloc(int iVoicing, int iR0, int *piVqIndeces,
+                           int iSoftInterp, int *piLags,
+                           int *piCodeWrdsA, int *piCodeWrdsB,
+                           int *piGsp0s, Shortword swVadFlag,
+                           Shortword swSP, Shortword *pswBAlloc);
+
+int    hostEncoderInterface(FILE *pfileInSpeech, int iNumToRead,
+                                   Shortword pswSamplesRead[]);
+
+  int    readDecfile(FILE *infile, Shortword pswSpeechPara[]);
+
+  void   speechDecoderHostInterface(Shortword pswDecodedSpeechFrame[],
+                                           FILE *fpfileSpeechOut);
+
+  int    writeEncfile(Shortword pswOutBit[], FILE *fpfileEnc);
+
+#endif