46 MprVad(
const UtlString& rName,
const UtlString &vadAlgorithm =
"");
63 const UtlString& resourceName,
64 OsMsgQ& flowgraphQueue);
79 const UtlString &vadAlgorithm);
Message object used to communicate with the media processing task.
Definition: MpResourceMsg.h:30
MprVad(const UtlString &rName, const UtlString &vadAlgorithm="")
Constructor.
Definition: MprVad.cpp:37
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: MprVad.cpp:92
Definition: MpVadBase.h:40
Definition: MpResourceMsg.h:56
UtlBoolean handleChageVadAlgorithm(const UtlString &vadAlgorithm)
Handle MPRM_CHANGE_VAD message.
Definition: MprVad.cpp:170
static OsStatus changeVadAlgorithm(const UtlString &namedResource, OsMsgQ &fgQ, const UtlString &vadAlgorithm)
Change VAD algorithm to the given one.
Definition: MprVad.cpp:76
Flow graph for coordinating the execution of media processing resources.
Definition: MpFlowGraphBase.h:91
UtlBoolean handleSetVadParam(UtlSerialized &serialData)
Handle message to set VAD parameter.
Definition: MprVad.cpp:185
OsStatus setFlowGraph(MpFlowGraphBase *pFlowGraph)
Associates this resource with the indicated flow graph.
Definition: MprVad.cpp:199
UtlBoolean handleMessage(MpResourceMsg &rMsg)
Handles an incoming flowgraph message for this media processing object.
Definition: MprVad.cpp:141
Abstract base class for all audio processing objects.
Definition: MpAudioResource.h:38
Smart pointer to MpBuf.
Definition: MpBuf.h:160
MpVadBase * mpVad
Instance of the VAD algorithm to use.
Definition: MprVad.h:113
Definition: MprDecode.h:55
Voice Activity Detection resource.
Definition: MprVad.h:36
static OsStatus setVadParameter(const UtlString ¶meterName, int parameterValue, const UtlString &resourceName, OsMsgQ &flowgraphQueue)
Set VAD parameter.
Definition: MprVad.cpp:55
~MprVad()
Destructor.
Definition: MprVad.cpp:46
UtlBoolean isEnabled() const
Returns TRUE is this resource is currently enabled, FALSE otherwise.
Definition: MpResource.cpp:440