OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gvSpeex.h
1/*
2GameSpy Voice2 SDK
3Dan "Mr. Pants" Schoenblum
4dan@gamespy.com
5
6Copyright 2004 GameSpy Industries, Inc
7
8devsupport@gamespy.com
9http://gamespy.net
10*/
11
12#ifndef _GV_SPEEX_H_
13#define _GV_SPEEX_H_
14
15#include "gvMain.h"
16
17/*
18 8000kHz
19quality: samplesPerFrame encodedFrameSize bitsPerSecond
200: 160 6 2150
211: 160 10 3950
222: 160 15 5950
233: 160 20 8000
244: 160 20 8000
255: 160 28 11000
266: 160 28 11000
277: 160 38 15000
288: 160 38 15000
299: 160 46 18200
3010: 160 62 24600
31
32 16000kHz
33quality: samplesPerFrame encodedFrameSize bitsPerSecond
340: 320 10 3950
351: 320 15 5750
362: 320 20 7750
373: 320 25 9800
384: 320 32 12800
395: 320 42 16800
406: 320 52 20600
417: 320 60 23800
428: 320 70 27800
439: 320 86 34200
4410: 320 106 42200
45*/
46
47GVBool gviSpeexInitialize(int quality, GVRate sampleRate);
48void gviSpeexCleanup(void);
49
50int gviSpeexGetSamplesPerFrame(void);
51int gviSpeexGetEncodedFrameSize(void);
52
53GVBool gviSpeexNewDecoder(GVDecoderData * data);
54void gviSpeexFreeDecoder(GVDecoderData data);
55
56void gviSpeexEncode(GVByte * out, const GVSample * in);
57void gviSpeexDecodeAdd(GVSample * out, const GVByte * in, GVDecoderData data);
58void gviSpeexDecodeSet(GVSample * out, const GVByte * in, GVDecoderData data);
59
60void gviSpeexResetEncoder(void);
61
62#endif