comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:9008dbc8ca74
1 #ifndef __HOSTGSM
2 #define __HOSTGSM
3
4 #include <stdio.h>
5 #include "typedefs.h"
6
7 /*_________________________________________________________________________
8 | |
9 | Function Prototypes |
10 |_________________________________________________________________________|
11 */
12
13 void fillBitAlloc(int iVoicing, int iR0, int *piVqIndeces,
14 int iSoftInterp, int *piLags,
15 int *piCodeWrdsA, int *piCodeWrdsB,
16 int *piGsp0s, Shortword swVadFlag,
17 Shortword swSP, Shortword *pswBAlloc);
18
19 int hostEncoderInterface(FILE *pfileInSpeech, int iNumToRead,
20 Shortword pswSamplesRead[]);
21
22 int readDecfile(FILE *infile, Shortword pswSpeechPara[]);
23
24 void speechDecoderHostInterface(Shortword pswDecodedSpeechFrame[],
25 FILE *fpfileSpeechOut);
26
27 int writeEncfile(Shortword pswOutBit[], FILE *fpfileEnc);
28
29 #endif