31 #ifndef PTLIB_DELAYCHAN_H 32 #define PTLIB_DELAYCHAN_H 65 unsigned maximumSlip = 0,
156 PINDEX frameSize = 0,
157 unsigned maximumSlip = 250,
172 PINDEX frameSize = 0,
173 unsigned maximumSlip = 250,
227 #endif // PTLIB_DELAYCHAN_H
PAdaptiveDelay(unsigned maximumSlip=0, unsigned minimumDelay=0)
Create a new adaptive delay with the specified parameters.
This class defines an arbitrary time interval to millisecond accuracy.
Definition: timeint.h:55
PINDEX frameSize
Definition: delaychan.h:218
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
This class defines an absolute time and date.
Definition: ptime.h:53
Mode
Definition: delaychan.h:140
This is a channel that operates indirectly through another channel(s).
Definition: indchan.h:49
Definition: delaychan.h:142
PTime targetTime
Definition: delaychan.h:112
PTimeInterval GetMaximumSlip() const
Get the current slip time.
Definition: delaychan.h:82
PTimeInterval minimumDelay
Definition: delaychan.h:115
BOOL PBoolean
Definition: object.h:102
void SetMaximumSlip(PTimeInterval maximumSlip)
Set the number of milliseconds that the delay may "catch up" by using zero delays.
Definition: delaychan.h:78
Class for implementing a "delay line" channel.
Definition: delaychan.h:134
Abstract class defining I/O channel semantics.
Definition: channel.h:107
Definition: delaychan.h:141
Class for implementing an "adaptive" delay.
Definition: delaychan.h:52
PTimeInterval maximumSlip
Definition: delaychan.h:219
PBoolean Delay(int time)
Wait until the specified number of milliseconds have elapsed from the previous call (on average)...
PTimeInterval nextWriteTick
Definition: delaychan.h:223
void Restart()
Invalidate the timer.
unsigned frameDelay
Definition: delaychan.h:217
PBoolean firstTime
Definition: delaychan.h:111
PTimeInterval minimumDelay
Definition: delaychan.h:220
PTimeInterval jitterLimit
Definition: delaychan.h:114
PTimeInterval nextReadTick
Definition: delaychan.h:222
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
Mode mode
Definition: delaychan.h:216