50 MprHook(
const UtlString& rName);
64 static OsStatus
setHook(
const UtlString& namedResource,
122 #endif // _MprHook_h_ Message object used to communicate with the media processing task.
Definition: MpResourceMsg.h:30
void * mpUserData
User data to pass to hook function.
Definition: MprHook.h:98
HookFunction mpHook
Hook function to be called.
Definition: MprHook.h:97
MprHook & operator=(const MprHook &rhs)
Assignment operator (not implemented for this class)
Definition: MpResourceMsg.h:56
MprHook(const UtlString &rName)
Constructor.
Definition: MprHook.cpp:30
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: MprHook.cpp:71
virtual ~MprHook()
Destructor.
Definition: MprHook.cpp:38
static OsStatus setHook(const UtlString &namedResource, OsMsgQ &fgQ, HookFunction func, void *pUserData)
Set hook function to be called for every received frame.
Definition: MprHook.cpp:44
Abstract base class for all audio processing objects.
Definition: MpAudioResource.h:38
virtual UtlBoolean handleMessage(MpResourceMsg &rMsg)
Handles an incoming flowgraph message for this media processing object.
Definition: MprHook.cpp:104
AddlMsgTypes
Definition: MprHook.h:92
Smart pointer to MpBuf.
Definition: MpBuf.h:160
uint32_t mFrameNum
Number of the current frame.
Definition: MprHook.h:99
void(* HookFunction)(MpBufPtr &pBuf, uint32_t time, void *pUserData)
Pointer to a hook function.
Definition: MprHook.h:41
The "Hook" media processing resource.
Definition: MprHook.h:35
UtlBoolean isEnabled() const
Returns TRUE is this resource is currently enabled, FALSE otherwise.
Definition: MpResource.cpp:440