sipxmedialib  Version 3.3
MprNull.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 _MprNull_h_
14 #define _MprNull_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
29 
35 class MprNull : public MpAudioResource
36 {
37 /* //////////////////////////// PUBLIC //////////////////////////////////// */
38 public:
39 
40 /* ============================ CREATORS ================================== */
42 
43  MprNull(const UtlString& rName,
45  int maxInOutputs);
46 
48  virtual
49  ~MprNull();
50 
52 
53 /* ============================ MANIPULATORS ============================== */
55 
56 
57 
58 /* ============================ ACCESSORS ================================= */
60 
61 
63 
64 /* ============================ INQUIRY =================================== */
66 
67 
69 
70 /* //////////////////////////// PROTECTED ///////////////////////////////// */
71 protected:
72 
73 /* //////////////////////////// PRIVATE /////////////////////////////////// */
74 private:
75 
76  virtual UtlBoolean doProcessFrame(MpBufPtr inBufs[],
77  MpBufPtr outBufs[],
78  int inBufsSize,
79  int outBufsSize,
80  UtlBoolean isEnabled,
81  int samplesPerFrame,
82  int samplesPerSecond);
83 
85  MprNull(const MprNull& rMprNull);
86 
88  MprNull& operator=(const MprNull& rhs);
89 
90 };
91 
92 /* ============================ INLINE METHODS ============================ */
93 
94 #endif // _MprNull_h_
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: MprNull.cpp:51
int samplesPerFrame
int samplesPerSecond
Abstract base class for all audio processing objects.
Definition: MpAudioResource.h:38
MprNull(const UtlString &rName, int maxInOutputs)
Constructor.
Definition: MprNull.cpp:30
Smart pointer to MpBuf.
Definition: MpBuf.h:160
MprNull & operator=(const MprNull &rhs)
Assignment operator (not implemented for this class)
virtual ~MprNull()
Destructor.
Definition: MprNull.cpp:37
The "Null" media processing resource is ground or /dev/null equivalent.
Definition: MprNull.h:35
UtlBoolean isEnabled() const
Returns TRUE is this resource is currently enabled, FALSE otherwise.
Definition: MpResource.cpp:440