Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

WaveformProxy Class Reference
[Proxies]

#include <playerclient.h>

Inherits ClientProxy.

List of all members.


Detailed Description

The WaveformProxy class is used to read raw digital waveforms from a waveform device.


Public Member Functions

 WaveformProxy (PlayerClient *pc, unsigned short index, unsigned char access= 'c')
 ~WaveformProxy ()
void FillData (player_msghdr_t hdr, const char *buffer)
void Print ()
 Print out the current status.

int ConfigureDSP ()
void OpenDSPforWrite ()
void Play ()

Public Attributes

unsigned int bitrate
 sample rate in bits per second

unsigned short depth
 sample depth in bits

unsigned int last_samples
unsigned char buffer [PLAYER_WAVEFORM_DATA_MAX]
 the data is buffered here for playback

int fd
 dsp file descriptor


Constructor & Destructor Documentation

WaveformProxy::WaveformProxy PlayerClient pc,
unsigned short  index,
unsigned char  access = 'c'
[inline]
 

Constructor. Leave the access field empty to start unconnected.

WaveformProxy::~WaveformProxy  ) 
 


Member Function Documentation

void WaveformProxy::FillData player_msghdr_t  hdr,
const char *  buffer
[virtual]
 

All proxies must provide this method. It is used internally to parse new data when it is received.

Reimplemented from ClientProxy.

void WaveformProxy::Print  )  [virtual]
 

Print out the current status.

Reimplemented from ClientProxy.

int WaveformProxy::ConfigureDSP  ) 
 

void WaveformProxy::OpenDSPforWrite  ) 
 

void WaveformProxy::Play  ) 
 


Member Data Documentation

unsigned int WaveformProxy::bitrate
 

sample rate in bits per second

unsigned short WaveformProxy::depth
 

sample depth in bits

unsigned int WaveformProxy::last_samples
 

unsigned char WaveformProxy::buffer[PLAYER_WAVEFORM_DATA_MAX]
 

the data is buffered here for playback

int WaveformProxy::fd
 

dsp file descriptor


The documentation for this class was generated from the following file:
Generated on Tue May 3 14:16:08 2005 for Player by doxygen 1.3.6