sipxmedialib  Version 3.3
MprNotchFilterConstructor.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2008-2015 SIPfoundry Inc. All rights reserved.
3 //
4 // $$
6 
7 // Author: Dan Petrie <dpetrie AT SIPez DOT com>
8 
9 #ifndef _MprNotchFilterConstructor_h_
10 #define _MprNotchFilterConstructor_h_
11 
12 // SYSTEM INCLUDES
13 // APPLICATION INCLUDES
15 #include <mp/MprNotchFilter.h>
16 
17 // DEFINES
18 // MACROS
19 // EXTERNAL FUNCTIONS
20 // EXTERNAL VARIABLES
21 // CONSTANTS
22 // STRUCTS
23 // TYPEDEFS
24 // FORWARD DECLARATIONS
25 
30 {
31 /* //////////////////////////// PUBLIC //////////////////////////////////// */
32 public:
33 
34 /* ============================ CREATORS ================================== */
35 
39  1, 1, //minInputs, maxInputs,
40  1, 1) //minOutputs, maxOutputs
41  {
42  }
43 
46 
47 /* ============================ MANIPULATORS ============================== */
48 
50  virtual OsStatus newResource(const UtlString& resourceName,
51  int maxResourcesToCreate,
52  int& numResourcesCreated,
53  MpResource* resourceArray[])
54  {
55  MprNotchFilter *pResource = new MprNotchFilter(resourceName);
56 
57  // Return created resource
58  assert(maxResourcesToCreate >= 1);
59  numResourcesCreated = 1;
60  resourceArray[0] = pResource;
61  resourceArray[0]->disable();
62 
63  return OS_SUCCESS;
64  }
65 
66 /* ============================ ACCESSORS ================================= */
67 
68 /* ============================ INQUIRY =================================== */
69 
70 /* //////////////////////////// PROTECTED ///////////////////////////////// */
71 protected:
72 
73 /* //////////////////////////// PRIVATE /////////////////////////////////// */
74 private:
75 
77  MprNotchFilterConstructor(const MprNotchFilterConstructor& rMprNotchFilterConstructor);
78 
81 
82 };
83 
84 /* ============================ INLINE METHODS ============================ */
85 
86 #endif // _MprNotchFilterConstructor_h_
MprNotchFilterConstructor & operator=(const MprNotchFilterConstructor &rhs)
Disabled assignment operator.
virtual UtlBoolean disable()
Disable this resource.
Definition: MpResource.cpp:121
Definition: MprNotchFilter.h:26
MprNotchFilterConstructor()
Constructor.
Definition: MprNotchFilterConstructor.h:37
#define DEFAULT_NOTCH_FILTER_RESOURCE_TYPE
Definition: MpResourceFactory.h:42
MprNotchFilterConstructor is used to construct VAD resource.
Definition: MprNotchFilterConstructor.h:29
virtual OsStatus newResource(const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourceArray[])
Create a new resource.
Definition: MprNotchFilterConstructor.h:50
virtual ~MprNotchFilterConstructor()
Destructor.
Definition: MprNotchFilterConstructor.h:45
Abstract base class for all media processing objects.
Definition: MpResource.h:56
MpAudioResourceConstructor is used to construct a specific audio resource type.
Definition: MpAudioResourceConstructor.h:36