13 #ifndef _MprBridgeConstructor_h_ 14 #define _MprBridgeConstructor_h_ 22 #ifndef DEFAULT_BRIDGE_MAX_IN_OUTPUTS 23 #define DEFAULT_BRIDGE_MAX_IN_OUTPUTS 10 47 UtlBoolean mixSilence=
TRUE,
50 minInOutputs, maxInOutputs,
51 minInOutputs, maxInOutputs)
64 int maxResourcesToCreate,
65 int& numResourcesCreated,
68 assert(maxResourcesToCreate >= 1);
69 numResourcesCreated = 1;
72 resourceArray[0]->
enable();
100 #endif // _MprBridgeConstructor_h_ MprBridgeConstructor(int minInOutputs=1, int maxInOutputs=DEFAULT_BRIDGE_MAX_IN_OUTPUTS, UtlBoolean mixSilence=TRUE, MprBridge::AlgType algorithm=MprBridge::ALG_LINEAR)
Constructor.
Definition: MprBridgeConstructor.h:45
MprBridgeConstructor is used to construct a bridge mixer resource.
Definition: MprBridgeConstructor.h:37
virtual ~MprBridgeConstructor()
Destructor.
Definition: MprBridgeConstructor.h:58
The conference bridge resource.
Definition: MprBridge.h:57
MprBridgeConstructor & operator=(const MprBridgeConstructor &rhs)
Disable assignment operator.
Linear O(n) algorithm (MpBridgeAlgLinear)
Definition: MprBridge.h:66
UtlBoolean mMixSilence
Definition: MprBridgeConstructor.h:83
MprBridge::AlgType mAlgorithm
Definition: MprBridgeConstructor.h:84
int mMaxInputs
Definition: MpResourceConstructor.h:92
virtual UtlBoolean enable()
Enable this resource.
Definition: MpResource.cpp:145
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 TRUE
Definition: PlgDefsV1.h:41
AlgType
Type of the bridge mix algorithm to use.
Definition: MprBridge.h:63
#define DEFAULT_BRIDGE_RESOURCE_TYPE
Definition: MpResourceFactory.h:20
#define DEFAULT_BRIDGE_MAX_IN_OUTPUTS
Definition: MprBridgeConstructor.h:23
virtual OsStatus newResource(const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourceArray[])
Create a new resource.
Definition: MprBridgeConstructor.h:63