mirror of
https://github.com/tribes2/engine.git
synced 2026-04-23 21:35:25 +00:00
t2 engine svn checkout
This commit is contained in:
commit
ff569bd2ae
988 changed files with 394180 additions and 0 deletions
52
audio/audioCodecGSM.h
Normal file
52
audio/audioCodecGSM.h
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// V12 Engine
|
||||
//
|
||||
// Copyright (c) 2001 GarageGames.Com
|
||||
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _AUDIOCODECGSM_H_
|
||||
#define _AUDIOCODECGSM_H_
|
||||
|
||||
#ifndef _AUDIOCODEC_H_
|
||||
#include "audio/audioCodec.h"
|
||||
#endif
|
||||
|
||||
class GSMEncoderCodec : public VoiceEncoderCodec
|
||||
{
|
||||
private:
|
||||
GSMEncoderCodec();
|
||||
~GSMEncoderCodec();
|
||||
|
||||
public:
|
||||
static VoiceCodec * create(U32 codecId);
|
||||
|
||||
bool open();
|
||||
void close();
|
||||
|
||||
void * openStream();
|
||||
void closeStream(void * stream);
|
||||
|
||||
U32 process(void * stream, BufferQueue * queue, const U8 * data, U32 maxLen);
|
||||
};
|
||||
|
||||
class GSMDecoderCodec : public VoiceDecoderCodec
|
||||
{
|
||||
private:
|
||||
|
||||
GSMDecoderCodec();
|
||||
~GSMDecoderCodec();
|
||||
|
||||
public:
|
||||
static VoiceCodec * create(U32 codecId);
|
||||
|
||||
bool open();
|
||||
void close();
|
||||
|
||||
void * openStream();
|
||||
void closeStream(void * stream);
|
||||
|
||||
U32 process(void * stream, BufferQueue * queue, const U8 * data, U32 maxLen);
|
||||
};
|
||||
|
||||
#endif // _INC_AUDIOCODECGSM
|
||||
Loading…
Add table
Add a link
Reference in a new issue