blob: 3c5468f57af738ec1e35e062ea124a0cc9c7c663 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* 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
*
*/
#include "LogManager.h"
#include "Filter.h"
extern "C"
{
#include "iLBC_encode.h"
#include "iLBC_decode.h"
}
class DLL_IMPORT_EXPORT_ORKBASE IlbcToPcmFilter : public Filter
{
public:
IlbcToPcmFilter();
~IlbcToPcmFilter();
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;
/* 30ms frames */
iLBC_Dec_Inst_t dec30;
/* 20ms frames */
iLBC_Dec_Inst_t dec20;
LoggerPtr s_ilbclog;
};
|