Skip to content
Snippets Groups Projects
Commit b68cbde6 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

nothing

parent d7a1c2d6
No related branches found
No related tags found
No related merge requests found
...@@ -30,16 +30,18 @@ public: ...@@ -30,16 +30,18 @@ public:
// _active = false; // _active = false;
_hasDynamicPayload = (_payload >= 96 && _payload <= 127) ? true : false; _hasDynamicPayload = (_payload >= 96 && _payload <= 127) ? true : false;
} }
virtual ~AudioCodec() {} virtual ~AudioCodec() {}
/** /**
* @return the number of bytes decoded * @return the number of bytes decoded
*/ */
virtual int codecDecode(short *, unsigned char *, unsigned int) = 0; virtual int codecDecode(short *, unsigned char *, unsigned int) = 0;
virtual int codecEncode(unsigned char *, short *, unsigned int) = 0; virtual int codecEncode(unsigned char *, short *, unsigned int) = 0;
/** Value used for SDP negotiation */ /** Value used for SDP negotiation */
std::string getCodecName() { return _codecName; } std::string getCodecName() { return _codecName; }
int getPayload() { return _payload; } int getPayload() { return _payload; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment