46 MprMixer(
const UtlString& rName,
int numWeights);
59 UtlBoolean
setWeights(
int *newWeights,
int numWeights);
64 UtlBoolean
setWeight(
int newWeight,
int weightIndex);
129 #endif // _MprMixer_h_ Message object used to communicate with the media processing task.
Definition: MpFlowGraphMsg.h:33
int mWeights[MAX_MIXER_INPUTS]
Definition: MprMixer.h:98
UtlBoolean handleSetWeight(int newWeight, int weightIndex)
Handle the SET_WEIGHT message.
Definition: MprMixer.cpp:205
UtlBoolean setWeight(int newWeight, int weightIndex)
Sets the weighting factor for the "weightIndex" input.
Definition: MprMixer.cpp:77
virtual UtlBoolean doProcessFrame(MpBufPtr inBufs[], MpBufPtr outBufs[], int inBufsSize, int outBufsSize, UtlBoolean isEnabled, int samplesPerFrame, int samplesPerSecond)
This method does the real work for the media processing resource and must be defined in each class de...
Definition: MprMixer.cpp:95
Definition: MprMixer.h:93
Definition: MprMixer.h:92
virtual ~MprMixer()
Destructor.
Definition: MprMixer.cpp:49
MprMixer(const UtlString &rName, int numWeights)
Constructor.
Definition: MprMixer.cpp:37
int mScale
Definition: MprMixer.h:100
Definition: MprMixer.h:96
Abstract base class for all audio processing objects.
Definition: MpAudioResource.h:38
MprMixer & operator=(const MprMixer &rhs)
Assignment operator (not implemented for this class)
UtlBoolean setWeights(int *newWeights, int numWeights)
Sets the weighting factors for the first "numWeights" inputs.
Definition: MprMixer.cpp:58
Smart pointer to MpBuf.
Definition: MpBuf.h:160
The "Mixer" media processing resource.
Definition: MprMixer.h:36
UtlBoolean handleSetWeights(int *newWeights, int numWeights)
Handle the SET_WEIGHTS message.
Definition: MprMixer.cpp:218
int mNumWeights
Definition: MprMixer.h:99
virtual UtlBoolean handleMessage(MpFlowGraphMsg &rMsg)
Handle messages for this resource.
Definition: MprMixer.cpp:180
AddlMsgTypes
Definition: MprMixer.h:90
UtlBoolean isEnabled() const
Returns TRUE is this resource is currently enabled, FALSE otherwise.
Definition: MpResource.cpp:440
start of resource-specific messages
Definition: MpFlowGraphMsg.h:67