13 #ifndef _MprVadConstructor_h_ 14 #define _MprVadConstructor_h_ 55 int maxResourcesToCreate,
56 int& numResourcesCreated,
62 assert(maxResourcesToCreate >= 1);
63 numResourcesCreated = 1;
64 resourceArray[0] = pVadResource;
65 resourceArray[0]->
enable();
90 #endif // _MprVadConstructor_h_
virtual ~MprVadConstructor()
Destructor.
Definition: MprVadConstructor.h:49
#define DEFAULT_VAD_RESOURCE_TYPE
Definition: MpResourceFactory.h:37
MprVadConstructor is used to construct VAD resource.
Definition: MprVadConstructor.h:33
virtual OsStatus newResource(const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourceArray[])
Create a new resource.
Definition: MprVadConstructor.h:54
MprVadConstructor & operator=(const MprVadConstructor &rhs)
Disabled assignment operator.
virtual UtlBoolean enable()
Enable this resource.
Definition: MpResource.cpp:145
MprVadConstructor()
Constructor.
Definition: MprVadConstructor.h:41
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
Voice Activity Detection resource.
Definition: MprVad.h:36