OpalMixerNode::AudioMixer Struct Reference

`#include <opalmixer.h>`

Inheritance diagram for OpalMixerNode::AudioMixer:

## Data Structures

struct | CachedAudio

## Public Member Functions

| AudioMixer (const OpalMixerNodeInfo &info)
| ~AudioMixer ()
virtual bool | OnPush ()
void | PushOne (PSafePtr< OpalMixerMediaStream > &stream, CachedAudio &cache, const short *audioToSubtract)
Public Member Functions inherited from OpalAudioMixer
| OpalAudioMixer (bool stereo=false, unsigned sampleRate=OpalMediaFormat::AudioClockRate, bool pushThread=true, unsigned period=10)
| ~OpalAudioMixer ()
virtual void | RemoveStream (const Key_T &key)
virtual void | RemoveAllStreams ()
bool | IsStereo () const
unsigned | GetSampleRate () const
bool | SetSampleRate (unsigned rate)
bool | SetJitterBufferSize (const Key_T &key, unsigned minJitterDelay, unsigned maxJitterDelay)
Public Member Functions inherited from OpalBaseMixer
| OpalBaseMixer (bool pushThread, unsigned periodMS, unsigned periodTS)
virtual | ~OpalBaseMixer ()
virtual bool | AddStream (const Key_T &key)
virtual bool | WriteStream (const Key_T &key, const RTP_DataFrame &input)
virtual RTP_DataFrame * | ReadMixed ()
virtual bool | ReadMixed (RTP_DataFrame &mixed)
virtual bool | OnMixed (RTP_DataFrame *&mixed)
void | StartPushThread ()
void | StopPushThread (bool lock=true)
unsigned | GetPeriodTS () const
Public Member Functions inherited from OpalMixerNode::MediaMixer
| MediaMixer ()

## Data Fields

std::map< PString, CachedAudio > | m_cache
Data Fields inherited from OpalMixerNode::MediaMixer
PSafeList< OpalMixerMediaStream > | m_outputStreams

## Additional Inherited Members

Public Types inherited from OpalBaseMixer
typedef PString | Key_T
Protected Types inherited from OpalBaseMixer
typedef std::map< Key_T, Stream * > | StreamMap_T
Protected Member Functions inherited from OpalAudioMixer
virtual Stream * | CreateStream ()
virtual bool | MixStreams (RTP_DataFrame &frame)
virtual size_t | GetOutputSize () const
void | PreMixStreams ()
void | MixStereo (RTP_DataFrame &frame)
void | MixAdditive (RTP_DataFrame &frame, const short *audioToSubtract)
Protected Member Functions inherited from OpalBaseMixer
void | PushThreadMain ()
Protected Attributes inherited from OpalAudioMixer
bool | m_stereo
unsigned | m_sampleRate
AudioStream * | m_left
AudioStream * | m_right
std::vector< int > | m_mixedAudio
Protected Attributes inherited from OpalBaseMixer
bool | m_pushThread
unsigned | m_periodMS
unsigned | m_periodTS
StreamMap_T | m_inputStreams
unsigned | m_outputTimestamp
RTP_DataFrame * | m_pushFrame
PThread * | m_workerThread
bool | m_threadRunning
PMutex | m_mutex

## Constructor & Destructor Documentation

OpalMixerNode::AudioMixer::AudioMixer | ( | const OpalMixerNodeInfo & | info | ) |

OpalMixerNode::AudioMixer::~AudioMixer | ( |  | ) |

## Member Function Documentation

virtual bool OpalMixerNode::AudioMixer::OnPush | ( |  | ) |

virtual

Reimplemented from OpalBaseMixer.

void OpalMixerNode::AudioMixer::PushOne | ( | PSafePtr< OpalMixerMediaStream > & | stream,
|  | CachedAudio & | cache,
|  | const short * | audioToSubtract
| ) |  |

## Field Documentation

std::map<PString, CachedAudio> OpalMixerNode::AudioMixer::m_cache

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

- opalmixer.h