31 #ifndef PTLIB_DELAYCHAN_H
32 #define PTLIB_DELAYCHAN_H
65 unsigned maximumSlip = 0,
227 #endif // PTLIB_DELAYCHAN_H
virtual PBoolean Write(const void *buf, PINDEX len)
Low level write to the file channel.
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
virtual void Wait(PINDEX count, PTimeInterval &nextTick)
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
PDelayChannel(Mode mode, unsigned frameDelay, PINDEX frameSize=0, unsigned maximumSlip=250, unsigned minimumDelay=10)
Create a new delay channel with the specified delays.
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
Definition: delaychan.h:143
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)...
virtual PBoolean Read(void *buf, PINDEX len)
Low level read from the file channel.
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