OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gvSpeexSpu.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_SPEEXSPU_H_
13#define _GV_SPEEXSPU_H_
14
15#include "../common/gsPlatform.h"
16#include "gvMain.h"
17#include "SpuSpeexTaskOutput.h"
18#include "SpursSpeexCInterface.h"
19
20/*
218000kHz
22quality: samplesPerFrame encodedFrameSize bitsPerSecond
230: 160 6 2150
241: 160 10 3950
252: 160 15 5950
263: 160 20 8000
274: 160 20 8000
285: 160 28 11000
296: 160 28 11000
307: 160 38 15000
318: 160 38 15000
329: 160 46 18200
3310: 160 62 24600
34
3516000kHz
36quality: samplesPerFrame encodedFrameSize bitsPerSecond
370: 320 10 3950
381: 320 15 5750
392: 320 20 7750
403: 320 25 9800
414: 320 32 12800
425: 320 42 16800
436: 320 52 20600
447: 320 60 23800
458: 320 70 27800
469: 320 86 34200
4710: 320 106 42200
48*/
49
50GVBool gviSpeexInitialize(int quality, GVRate sampleRate);
51void gviSpeexCleanup(void);
52
53int gviSpeexGetSamplesPerFrame(void);
54int gviSpeexGetEncodedFrameSize(void);
55
56GVBool gviSpeexNewDecoder(GVDecoderData * data);
57void gviSpeexFreeDecoder(GVDecoderData data);
58
59void gviSpeexEncode(GVByte * out, const GVSample * in);
60void gviSpeexDecodeAdd(GVSample * out, const GVByte * in, GVDecoderData data);
61void gviSpeexDecodeSet(GVSample * out, const GVByte * in, GVDecoderData data);
62
63void gviSpeexResetEncoder(void);
64
65#endif