187 static UtlBoolean
startPlay(
const UtlString& namedResource,
191 static UtlBoolean
stopPlay(
const UtlString& namedResource,
335 #endif // _MprDelay_h_ MprDelayFifo(int capacity)
Constructor.
Definition: MprDelay.cpp:203
Message object used to communicate with the media processing task.
Definition: MpResourceMsg.h:30
UtlBoolean doDelay(MpBufPtr &inBuf, MpBufPtr &outBuf, int samplesPerFrame, int samplesPerSecond)
Definition: MprDelay.cpp:96
int mBuffSize
Definition: MprDelay.h:322
static UtlBoolean stopPlay(const UtlString &namedResource, OsMsgQ &fgQ)
Send message to stop play.
Definition: MprDelay.cpp:58
UtlBoolean isEmpty() const
Is FIFIO empty.
Definition: MprDelay.cpp:290
Definition: MprDelay.h:169
Definition: MprDelay.h:251
Definition: MpResourceMsg.h:56
MprDelayFifo mFifo
FIFO for the stored data.
Definition: MprDelay.h:330
UtlBoolean mIsQuiescenceNotified
Have FIFO quiescent state been notified?
Definition: MprDelay.h:329
Fifo for Delay resource.
Definition: MprDelay.h:260
int mStartPosition
Definition: MprDelay.h:324
Definition: MprDelay.h:252
MprDelayState mState
State of delay resource.
Definition: MprDelay.h:328
int getDelayFrames()
Get delay in frames.
Definition: MprDelay.cpp:86
Smart pointer to MpAudioBuf.
Definition: MpAudioBuf.h:168
Abstract base class for all audio processing objects.
Definition: MpAudioResource.h:38
void reset()
Reset FIFO.
Definition: MprDelay.cpp:218
int getDelayMs()
Get delay in milliseconds.
Definition: MprDelay.cpp:70
int getFifoLength() const
Get number of buffers in queue.
Definition: MprDelay.cpp:277
Definition: MprDelay.h:244
Definition: MprDelay.h:246
UtlBoolean handleMessage(MpResourceMsg &rMsg)
Handles an incoming flowgraph message for this media processing object.
Definition: MprDelay.cpp:159
~MprDelay()
Destructor.
Definition: MprDelay.cpp:43
Definition: MprDelay.h:245
static UtlBoolean startPlay(const UtlString &namedResource, OsMsgQ &fgQ)
Send message to start play.
Definition: MprDelay.cpp:51
MpAudioBufPtr * mBuff
Definition: MprDelay.h:321
Delay Resource.
Definition: MprDelay.h:163
Smart pointer to MpBuf.
Definition: MpBuf.h:160
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: MprDelay.cpp:178
MprDelay(const UtlString &rName, int capacity=DEFAULT_FIFO_CAPACITY)
Constructor.
Definition: MprDelay.cpp:33
void popData(MpAudioBufPtr &databuff)
Pop audio buffer from FIFO.
Definition: MprDelay.cpp:261
~MprDelayFifo()
Destructor.
Definition: MprDelay.cpp:213
int mNumActiveFrames
Definition: MprDelay.h:325
AddlMsgTypes
Definition: MprDelay.h:249
void pushData(MpAudioBufPtr &databuff)
Push audio buffer to FIFO.
Definition: MprDelay.cpp:227
MprDelayState
Definition: MprDelay.h:241
int mEndPosition
Definition: MprDelay.h:323
UtlBoolean isQuiescent() const
Does FIFO contain only silent frames?
Definition: MprDelay.cpp:285
int getDelaySamples()
Get delay in samples.
Definition: MprDelay.cpp:78
Definition: MprDelay.h:243
UtlBoolean isEnabled() const
Returns TRUE is this resource is currently enabled, FALSE otherwise.
Definition: MpResource.cpp:440