OPAL  Version 3.10.4
OpalLineSilenceDetector Class Reference

#include <lidep.h>

Inheritance diagram for OpalLineSilenceDetector:
OpalSilenceDetector

Public Member Functions

Construction
 OpalLineSilenceDetector (OpalLine &line, const Params &newParam)
Overrides from OpalSilenceDetector
virtual unsigned GetAverageSignalLevel (const BYTE *buffer, PINDEX size)
- Public Member Functions inherited from OpalSilenceDetector
 OpalSilenceDetector (const Params &newParam)
const PNotifier & GetReceiveHandler () const
void SetParameters (const Params &params, const int clockRate=0)
void SetClockRate (const int clockRate)
int GetClockRate () const
Mode GetStatus (PBoolean *isInTalkBurst, unsigned *currentThreshold) const

Protected Attributes

OpalLineline
PNotifier receiveHandler
Mode mode
unsigned signalDeadband
unsigned silenceDeadband
unsigned adaptivePeriod
int clockRate
unsigned lastTimestamp
unsigned receivedTime
unsigned levelThreshold
unsigned signalMinimum
unsigned silenceMaximum
unsigned signalReceivedTime
unsigned silenceReceivedTime
bool inTalkBurst
PMutex inUse

Additional Inherited Members

- Public Types inherited from OpalSilenceDetector
enum  Mode { NoSilenceDetection, FixedSilenceDetection, AdaptiveSilenceDetection, NumModes }
 PDECLARE_NOTIFIER (RTP_DataFrame, OpalSilenceDetector, ReceivedPacket)

Constructor & Destructor Documentation

OpalLineSilenceDetector::OpalLineSilenceDetector ( OpalLine line,
const Params newParam 
)

Create a new silence detector for a LID.

Parameters:
lineLine to detect silence on
newParamNew parameters for silence detector

Member Function Documentation

virtual unsigned OpalLineSilenceDetector::GetAverageSignalLevel ( const BYTE *  buffer,
PINDEX  size 
)
virtual

Get the average signal level in the stream. This is called from within the silence detection algorithm to calculate the average signal level of the last data frame read from the stream.

The default behaviour returns UINT_MAX which indicates that the average signal has no meaning for the stream.

Parameters:
bufferRTP payload being detected
sizeSize of payload buffer

Implements OpalSilenceDetector.


Field Documentation

OpalLine& OpalLineSilenceDetector::line
protected

The documentation for this class was generated from the following file: