13 #ifndef _MprSpeexPreProcessConstructor_h_ 14 #define _MprSpeexPreProcessConstructor_h_ 59 int maxResourcesToCreate,
60 int& numResourcesCreated,
63 assert(maxResourcesToCreate >= 1);
64 numResourcesCreated = 1;
68 resourceArray[0] = pPreprocess;
69 resourceArray[0]->
enable();
97 #endif // _MprSpeexPreProcessConstructor_h_ MprSpeexPreProcessConstructor(UtlBoolean agc=FALSE, UtlBoolean noiseReduction=FALSE)
Constructor.
Definition: MprSpeexPreProcessConstructor.h:43
MprSpeexPreProcessConstructor is used to construct a SpeexPreProcess resource.
Definition: MprSpeexPreProcessConstructor.h:35
virtual ~MprSpeexPreProcessConstructor()
Destructor.
Definition: MprSpeexPreProcessConstructor.h:53
UtlBoolean mAgc
Is AGC enabled by default?
Definition: MprSpeexPreProcessConstructor.h:80
virtual OsStatus newResource(const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourceArray[])
Create a new resource.
Definition: MprSpeexPreProcessConstructor.h:58
UtlBoolean setNoiseReduction(UtlBoolean enable)
Enable or disable noise reduction.
The "Speex Audio Preprocessor" media processing resource.
Definition: MprSpeexPreProcess.h:42
virtual UtlBoolean enable()
Enable this resource.
Definition: MpResource.cpp:145
UtlBoolean setAGC(UtlBoolean enable)
Enable or disable Automatic Gain Control.
MprSpeexPreProcessConstructor & operator=(const MprSpeexPreProcessConstructor &rhs)
Disable assignment operator.
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
#define FALSE
Definition: PlgDefsV1.h:37
#define DEFAULT_SPEEX_PREPROCESS_RESOURCE_TYPE
Definition: MpResourceFactory.h:26
UtlBoolean mNoiseReduction
Is noise reduction enabled by default?
Definition: MprSpeexPreProcessConstructor.h:81