sipxmedialib  Version 3.3
MprNullAec.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2007 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 
11 // Author: Dan Petrie <dpetrie AT SIPez DOT com>
12 
13 #ifndef _MprNullAec_h_
14 #define _MprNullAec_h_
15 
16 // SYSTEM INCLUDES
17 
18 // APPLICATION INCLUDES
19 #include "mp/MpAudioResource.h"
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 // FORWARD DECLARATIONS
30 
51 {
52 /* //////////////////////////// PUBLIC //////////////////////////////////// */
53 public:
54 
55 /* ============================ CREATORS ================================== */
57 
58  MprNullAec(const UtlString& rName,
61 
63  virtual
64  ~MprNullAec();
65 
67 
68 /* ============================ MANIPULATORS ============================== */
70 
71 
72 
73 /* ============================ ACCESSORS ================================= */
75 
76 
78 
79 /* ============================ INQUIRY =================================== */
81 
82 
84 
85 /* //////////////////////////// PROTECTED ///////////////////////////////// */
86 protected:
87 
88 /* //////////////////////////// PRIVATE /////////////////////////////////// */
89 private:
90 
91  MprAudioFrameBuffer* mpOutputBufferResource;
92 
93  virtual UtlBoolean doProcessFrame(MpBufPtr inBufs[],
94  MpBufPtr outBufs[],
95  int inBufsSize,
96  int outBufsSize,
97  UtlBoolean isEnabled,
98  int samplesPerFrame,
99  int samplesPerSecond);
100 
102  MprNullAec(const MprNullAec& rMprNullAec);
103 
105  MprNullAec& operator=(const MprNullAec& rhs);
106 
107 };
108 
109 /* ============================ INLINE METHODS ============================ */
110 
111 #endif // _MprNullAec_h_
int samplesPerFrame
virtual ~MprNullAec()
Destructor.
Definition: MprNullAec.cpp:39
MprNullAec & operator=(const MprNullAec &rhs)
Assignment operator (not implemented for this class)
int samplesPerSecond
MprNullAec(const UtlString &rName, MprAudioFrameBuffer &MprAudioFrameBuffer)
Constructor.
Definition: MprNullAec.cpp:31
MprAudioFrameBuffer * mpOutputBufferResource
Definition: MprNullAec.h:91
Abstract base class for all audio processing objects.
Definition: MpAudioResource.h:38
Smart pointer to MpBuf.
Definition: MpBuf.h:160
virtual UtlBoolean doProcessFrame(MpBufPtr inBufs[], MpBufPtr outBufs[], int inBufsSize, int outBufsSize, UtlBoolean isEnabled, int samplesPerFrame, int samplesPerSecond)
This method does the real work for the media processing resource and must be defined in each class de...
Definition: MprNullAec.cpp:53
The MprAudioFrameBuffer resource buffers frames of audio that pass through to be retrieved later...
Definition: MprAudioFrameBuffer.h:39
UtlBoolean isEnabled() const
Returns TRUE is this resource is currently enabled, FALSE otherwise.
Definition: MpResource.cpp:440
The MprNullAec resource a no-op AEC implementation intended to be a base calls for real AEC implement...
Definition: MprNullAec.h:50