fteqw/engine/sndcodec/voicechat.h
Spoike 7f00235804 Non-Functional voice communication.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@16 fc73d0e0-1445-4013-8a0c-d673dee63da5
2004-08-23 01:36:14 +00:00

9 lines
322 B
C

//raw data is 16 bps
typedef struct {
char *name;
int (*encode) (short *in, unsigned char *out, int numsamps); //returns number of bytes.
int (*decode) (unsigned char *in, short *out, int numsamps); //returns number of 16bps samples.
} audiocodec_t;
extern audiocodec_t audiocodecs[];
extern const int audionumcodecs;