13 #ifndef _MprSpeakerSelectorConstructor_h_ 14 #define _MprSpeakerSelectorConstructor_h_ 23 #define DEFAULT_SPEAKER_SELECTOR_MAX_INPUTS 20 24 #define DEFAULT_SPEAKER_SELECTOR_MAX_OUTPUTS 6 28 #define DEFAULT_SPEAKER_SELECTOR_MAX_SPEAKERS 3 67 int maxResourcesToCreate,
68 int& numResourcesCreated,
77 assert(maxResourcesToCreate >= 1);
78 numResourcesCreated = 1;
79 resourceArray[0] = pResource;
80 resourceArray[0]->
enable();
107 #endif // _MprSpeakerSelectorConstructor_h_ MprSpeakerSelectorConstructor & operator=(const MprSpeakerSelectorConstructor &rhs)
Disabled assignment operator.
#define DEFAULT_SPEAKER_SELECTOR_MAX_OUTPUTS
Number of Speaker Selector outputs. Must be less or equal then number of inputs in the Bridge minus n...
Definition: MprSpeakerSelectorConstructor.h:27
MprSpeakerSelectorConstructor is used to construct Speaker Selector resource.
Definition: MprSpeakerSelectorConstructor.h:42
MprSpeakerSelectorConstructor(int maxInputs=DEFAULT_SPEAKER_SELECTOR_MAX_INPUTS, int maxOutputs=DEFAULT_SPEAKER_SELECTOR_MAX_OUTPUTS, int maxActiveSpeakers=DEFAULT_SPEAKER_SELECTOR_MAX_SPEAKERS)
Constructor.
Definition: MprSpeakerSelectorConstructor.h:50
#define DEFAULT_SPEAKER_SELECTOR_MAX_INPUTS
Number of Speaker Selector inputs.
Definition: MprSpeakerSelectorConstructor.h:23
#define DEFAULT_SPEAKER_SELECTOR_RESOURCE_TYPE
Definition: MpResourceFactory.h:40
The Speaker Selection resource.
Definition: MprSpeakerSelector.h:35
int mMaxActiveSpeakers
Number of speakers we want to mix.
Definition: MprSpeakerSelectorConstructor.h:92
int mMaxInputs
Definition: MpResourceConstructor.h:92
virtual UtlBoolean enable()
Enable this resource.
Definition: MpResource.cpp:145
#define DEFAULT_SPEAKER_SELECTOR_MAX_SPEAKERS
Maximum number of speakers we want to mix.
Definition: MprSpeakerSelectorConstructor.h:29
int mMaxOutputs
Definition: MpResourceConstructor.h:94
virtual ~MprSpeakerSelectorConstructor()
Destructor.
Definition: MprSpeakerSelectorConstructor.h:61
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
virtual OsStatus newResource(const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourceArray[])
Create a new resource.
Definition: MprSpeakerSelectorConstructor.h:66