sipxmedialib  Version 3.3
Public Member Functions | Private Attributes | List of all members
MpSineWaveGeneratorServer Class Reference
Inheritance diagram for MpSineWaveGeneratorServer:
Inheritance graph
[legend]
Collaboration diagram for MpSineWaveGeneratorServer:
Collaboration graph
[legend]

Public Member Functions

 MpSineWaveGeneratorServer (unsigned int startFrameTime, unsigned int samplesPerFrame, unsigned int samplesPerSecond, unsigned int magnitude, unsigned int periodMicroseconds, int relativeSpeed, MpInputDeviceHandle deviceId, MpInputDeviceManager &inputDeviceManager)
 
virtual ~MpSineWaveGeneratorServer ()
 
virtual UtlBoolean start (void)
 
virtual void requestShutdown (void)
 
UtlBoolean handleMessage (OsMsg &rMsg)
 
void setTone (unsigned int periodInMicroseconds)
 
void setMagnitude (unsigned int magnitude)
 
void setRelativeSpeed (int relativeSpeed)
 

Private Attributes

MpFrameTime mNextFrameTime
 
unsigned int mSamplesPerFrame
 
unsigned int mSamplesPerSecond
 
unsigned int mMagnitude
 
unsigned int mSinePeriodMicroseconds
 
int mRelativeSpeed
 
MpInputDeviceHandle mDeviceId
 
MpInputDeviceManagermpInputDeviceManager
 
MpAudioSamplempFrameData
 
OsTimer mTimer
 

Constructor & Destructor Documentation

MpSineWaveGeneratorServer ( unsigned int  startFrameTime,
unsigned int  samplesPerFrame,
unsigned int  samplesPerSecond,
unsigned int  magnitude,
unsigned int  periodMicroseconds,
int  relativeSpeed,
MpInputDeviceHandle  deviceId,
MpInputDeviceManager inputDeviceManager 
)
inline
virtual ~MpSineWaveGeneratorServer ( )
inlinevirtual

Member Function Documentation

virtual UtlBoolean start ( void  )
inlinevirtual
virtual void requestShutdown ( void  )
inlinevirtual
UtlBoolean handleMessage ( OsMsg &  rMsg)
inline
void setTone ( unsigned int  periodInMicroseconds)
inline
void setMagnitude ( unsigned int  magnitude)
inline
void setRelativeSpeed ( int  relativeSpeed)
inline

Member Data Documentation

MpFrameTime mNextFrameTime
private
unsigned int mSamplesPerFrame
private
unsigned int mSamplesPerSecond
private
unsigned int mMagnitude
private
unsigned int mSinePeriodMicroseconds
private
int mRelativeSpeed
private
MpInputDeviceHandle mDeviceId
private
MpInputDeviceManager* mpInputDeviceManager
private
MpAudioSample* mpFrameData
private
OsTimer mTimer
private