14 #ifndef _MprToneGen_h_ 15 #define _MprToneGen_h_ 47 MprToneGen(
const UtlString& rName,
const char* locale);
69 virtual UtlBoolean setSamplesPerSec(
int samplesPerSec);
80 static OsStatus
startTone(
const UtlString& namedResource,
104 static OsStatus
stopTone(
const UtlString& namedResource,
183 #endif // _MprToneGen_h_ Message object used to communicate with the media processing task.
Definition: MpFlowGraphMsg.h:33
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: MprToneGen.cpp:114
The "Tone Generator" media processing resource.
Definition: MprToneGen.h:37
Message object used to communicate with the media processing task.
Definition: MpResourceMsg.h:30
Definition: dtmflib.cpp:56
Flow graph for coordinating the execution of media processing resources.
Definition: MpFlowGraphBase.h:91
OsStatus stopTone(void)
Sends a STOP_TONE message to this resource to stop generating an audio tone.
Definition: MprToneGen.cpp:87
OsStatus startTone(int toneId)
Sends a START_TONE message to this resource to begin generating an audio tone.
Definition: MprToneGen.cpp:63
MprToneGen(const UtlString &rName, const char *locale)
Constructor.
Definition: MprToneGen.cpp:44
Abstract base class for all audio processing objects.
Definition: MpAudioResource.h:38
MpToneGenPtr mpToneGenState
Definition: MprToneGen.h:147
static const int MIN_SAMPLE_RATE
Definition: MprToneGen.h:144
static const int MAX_SAMPLE_RATE
Definition: MprToneGen.h:145
OsStatus setFlowGraph(MpFlowGraphBase *pFlowGraph)
Associates this resource with the indicated flow graph.
Definition: MprToneGen.cpp:241
Smart pointer to MpBuf.
Definition: MpBuf.h:160
Definition: MprToneGen.h:141
const char * mpLocale
Definition: MprToneGen.h:148
AddlMsgTypes
Definition: MprToneGen.h:138
virtual UtlBoolean handleMessage(MpFlowGraphMsg &fgMsg)
Handle flowgraph messages for this resource.
Definition: MprToneGen.cpp:190
MprToneGen & operator=(const MprToneGen &rhs)
Assignment operator (not implemented for this class)
Definition: MprToneGen.h:140
virtual ~MprToneGen()
Destructor.
Definition: MprToneGen.cpp:53
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