|
| MpAudioResourceConstructor (const UtlString &resourceType, int minInputs=1, int maxInputs=1, int minOutputs=1, int maxOutputs=1) |
|
virtual | ~MpAudioResourceConstructor () |
|
virtual OsStatus | newResource (const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourcesCreated[])=0 |
| Create new resource(s) More...
|
|
| MpResourceConstructor (const UtlString &resourceType, int minInputs=1, int maxInputs=1, int minOutputs=1, int maxOutputs=1) |
|
virtual | ~MpResourceConstructor () |
|
MpAudioResourceConstructor is used to construct a specific audio resource type.
MpAudioResourceConstructors is an abstract class. Derived types construct a specific type of MpAudioResource.
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. |
Implements MpResourceConstructor.
Implemented in MprSpeakerSelectorConstructor, MprToOutputDeviceWithAecConstructor, MprBridgeConstructor, MprFromInputDeviceConstructor, MprRtpInputConnectionConstructor, MprSplitterConstructor, MprToOutputDeviceConstructor, MprNullAecConstructor, MprRtpOutputConnectionConstructor, MprSpeexPreProcessConstructor, MprToneGenConstructor, MprNullConstructor, MprDecodeConstructor, MprHookConstructor, MprDelayConstructor, MprEncodeConstructor, MprFromFileConstructor, MprVadConstructor, MprVoiceActivityNotifierConstructor, MprToneDetectConstructor, MprNotchFilterConstructor, and MprRecorderConstructor.