OPAL  Version 3.10.4
OpalMediaStreamPacing Class Reference

#include <mediastrm.h>

Inheritance diagram for OpalMediaStreamPacing:
OpalFileMediaStream OpalLocalMediaStream OpalNullMediaStream

Public Member Functions

 OpalMediaStreamPacing (const OpalMediaFormat &mediaFormat)
void Pace (bool reading, PINDEX bytes, bool &marker)
 Delay appropriate time for the written bytes.

Protected Attributes

bool m_isAudio
unsigned m_frameTime
PINDEX m_frameSize
unsigned m_timeUnits
PAdaptiveDelay m_delay

Detailed Description

This is a helper class to delay the right time for non I/O bound streams.


Constructor & Destructor Documentation

Parameters:
mediaFormatMedia format for stream

Member Function Documentation

void OpalMediaStreamPacing::Pace ( bool  reading,
PINDEX  bytes,
bool &  marker 
)

Delay appropriate time for the written bytes.

Parameters:
readingAre reading from medium
bytesBytes read/written
markerRTP Marker

Field Documentation

PAdaptiveDelay OpalMediaStreamPacing::m_delay [protected]
unsigned OpalMediaStreamPacing::m_frameTime [protected]
unsigned OpalMediaStreamPacing::m_timeUnits [protected]

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