diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2009-01-10 14:15:54 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2009-01-10 14:15:54 +0000 |
commit | 99a4b62e59b63bfd232ace0b3768e10e0f47ceb3 (patch) | |
tree | 71a066771fc61ecc40c2c9f189d46975373c91aa /orkbasecxx/filters/g722codec/G722Codec.h | |
parent | 0e2a2e49077b79bd52d6c83c5202e452e7eea091 (diff) |
Added support for the G722 codec. Tested in Linux so far.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@591 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/filters/g722codec/G722Codec.h')
-rw-r--r-- | orkbasecxx/filters/g722codec/G722Codec.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/orkbasecxx/filters/g722codec/G722Codec.h b/orkbasecxx/filters/g722codec/G722Codec.h new file mode 100644 index 0000000..2b1fc26 --- /dev/null +++ b/orkbasecxx/filters/g722codec/G722Codec.h @@ -0,0 +1,41 @@ +/* + * Oreka -- A media capture and retrieval platform + * + * Copyright (C) 2005, orecx LLC + * + * http://www.orecx.com + * + * This program is free software, distributed under the terms of + * the GNU General Public License. + * Please refer to http://www.gnu.org/copyleft/gpl.html + * + */ +#ifndef __G722DECODER_H__ +#define __G722DECODER_H__ 1 + +#include "LogManager.h" +#include "Filter.h" +#include "G722.h" + +class DLL_IMPORT_EXPORT_ORKBASE G722Decoder : public Filter +{ +public: + G722Decoder(); + ~G722Decoder(); + + FilterRef __CDECL__ Instanciate(); + void __CDECL__ AudioChunkIn(AudioChunkRef& chunk); + void __CDECL__ AudioChunkOut(AudioChunkRef& chunk); + AudioEncodingEnum __CDECL__ GetInputAudioEncoding(); + AudioEncodingEnum __CDECL__ GetOutputAudioEncoding(); + CStdString __CDECL__ GetName(); + int __CDECL__ GetInputRtpPayloadType(); + void __CDECL__ CaptureEventIn(CaptureEventRef& event); + void __CDECL__ CaptureEventOut(CaptureEventRef& event); + +private: + AudioChunkRef m_outputAudioChunk; + g722_decode_state_t m_ctx; +}; + +#endif |