MpResourceConstructor is used to construct a spcific resource type.
MpResourceConstructors is an abstract class. Derived types construct a specific type of MpResource.
virtual OsStatus newResource |
( |
const UtlString & |
resourceName, |
|
|
int |
maxResourcesToCreate, |
|
|
int & |
numResourcesCreated, |
|
|
MpResource * |
resourcesCreated[] |
|
) |
| |
|
pure virtual |
Create new resource(s)
Creates one or more resources as defined by the implementation of the resource constructor (typically of different resource types as opposed to duplicates). Some resources are created in sets as they work together in some way. This interface allows the constructor to create multiple resources and assocate or initialize them together.
- Parameters
-
[in] | resourceName | - name to give the new resource, must be unique to the target flowgraph that this resource is to be inserted. |
[in] | maxResourcesToCreate | - the size of the resourcesCreated passed in |
[out] | numResourcesCreated | - the actual number of resource created and contained in the resourcesCreated array |
[out] | resourcesCreated | - array containing the created resources. |
Implemented in MprSpeakerSelectorConstructor, MpAudioResourceConstructor, MprToOutputDeviceWithAecConstructor, MprBridgeConstructor, MprFromInputDeviceConstructor, MprRtpInputConnectionConstructor, MprSplitterConstructor, MprToOutputDeviceConstructor, MprNullAecConstructor, MprRtpOutputConnectionConstructor, MprSpeexPreProcessConstructor, MprToneGenConstructor, MprNullConstructor, MprDecodeConstructor, MprHookConstructor, MprDelayConstructor, MprEncodeConstructor, MprFromFileConstructor, MprVadConstructor, MprVoiceActivityNotifierConstructor, MprToneDetectConstructor, MprNotchFilterConstructor, and MprRecorderConstructor.