Skip to content

Commit

Permalink
codec.h and protocol.h
Browse files Browse the repository at this point in the history
darcs-hash:20050221184305-28bda-7ba21782e486d782b5c4fc0ff978d3a8f428344e.gz
  • Loading branch information
fugalh committed Feb 21, 2005
1 parent f150404 commit b162daa
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/codec.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#ifndef CODEC_H
#define CODEC_H

class Codec
{
public:
virtual int encode(short*,int*,void*,int*) = 0;
virtual int decode(void*,int*,short*,int*) = 0;
};

class GSM : public Codec
{
public:
int encode(short*,int*,void*,int*);
int decode(void*,int*,short*,int*);
};

#endif
11 changes: 11 additions & 0 deletions src/protocol.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef PROTOCOL_H
#define PROTOCOL_H

class Protocol
{
public:
int allowed_codecs;
int preferred_codec;
};

#endif

0 comments on commit b162daa

Please sign in to comment.