sipxmedialib  Version 3.3
MprSplitter.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2004-2006 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
9 // Licensed to SIPfoundry under a Contributor Agreement.
10 //
11 // $$
13 
14 
15 #ifndef _MprSplitter_h_
16 #define _MprSplitter_h_
17 
18 // SYSTEM INCLUDES
19 
20 // APPLICATION INCLUDES
21 #include "mp/MpAudioResource.h"
22 
23 // DEFINES
24 // MACROS
25 // EXTERNAL FUNCTIONS
26 // EXTERNAL VARIABLES
27 // CONSTANTS
28 // STRUCTS
29 // TYPEDEFS
30 // FORWARD DECLARATIONS
31 
42 {
43 /* //////////////////////////// PUBLIC //////////////////////////////////// */
44 public:
45 
46 /* ============================ CREATORS ================================== */
48 
49  MprSplitter(const UtlString& rName, int numOutputs);
51 
53  virtual
54  ~MprSplitter();
55 
57 
58 /* ============================ MANIPULATORS ============================== */
60 
61 
62 
63 /* ============================ ACCESSORS ================================= */
65 
66 
68 
69 /* ============================ INQUIRY =================================== */
71 
72 
74 
75 /* //////////////////////////// PROTECTED ///////////////////////////////// */
76 protected:
77 
78 /* //////////////////////////// PRIVATE /////////////////////////////////// */
79 private:
80 
81  virtual UtlBoolean doProcessFrame(MpBufPtr inBufs[],
82  MpBufPtr outBufs[],
83  int inBufsSize,
84  int outBufsSize,
85  UtlBoolean isEnabled,
86  int samplesPerFrame,
87  int samplesPerSecond);
88 
90  MprSplitter(const MprSplitter& rMprSplitter);
91 
93  MprSplitter& operator=(const MprSplitter& rhs);
94 
95 };
96 
97 /* ============================ INLINE METHODS ============================ */
98 
99 #endif // _MprSplitter_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: MprSplitter.cpp:54
int samplesPerFrame
MprSplitter(const UtlString &rName, int numOutputs)
Constructor.
Definition: MprSplitter.cpp:34
The "Splitter" media processing resource.
Definition: MprSplitter.h:41
int samplesPerSecond
Abstract base class for all audio processing objects.
Definition: MpAudioResource.h:38
Smart pointer to MpBuf.
Definition: MpBuf.h:160
MprSplitter & operator=(const MprSplitter &rhs)
Assignment operator (not implemented for this class)
int numOutputs() const
Returns the number of resource outputs that are currently connected.
Definition: MpResource.cpp:381
UtlBoolean isEnabled() const
Returns TRUE is this resource is currently enabled, FALSE otherwise.
Definition: MpResource.cpp:440
virtual ~MprSplitter()
Destructor.
Definition: MprSplitter.cpp:40