Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

AudioProxy Class Reference
[Proxies]

#include <playerclient.h>

Inherits ClientProxy.

List of all members.


Detailed Description

The AudioProxy class controls an audio device.


Public Member Functions

 AudioProxy (PlayerClient *pc, unsigned short index, unsigned char access='c')
void FillData (player_msghdr_t hdr, const char *buffer)
int PlayTone (unsigned short freq, unsigned short amp, unsigned short dur)
 Play a fixed-frequency tone.

void Print ()
 Print the current data.


Public Attributes

uint16_t frequency0
uint16_t amplitude0
uint16_t frequency1
uint16_t amplitude1
uint16_t frequency2
uint16_t amplitude2
uint16_t frequency3
uint16_t amplitude3
uint16_t frequency4
uint16_t amplitude4


Constructor & Destructor Documentation

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

Constructor. Leave the access field empty to start unconnected.


Member Function Documentation

void AudioProxy::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.

int AudioProxy::PlayTone unsigned short  freq,
unsigned short  amp,
unsigned short  dur
 

Play a fixed-frequency tone.

void AudioProxy::Print  )  [virtual]
 

Print the current data.

Reimplemented from ClientProxy.


Member Data Documentation

uint16_t AudioProxy::frequency0
 

Hz, db ?

uint16_t AudioProxy::amplitude0
 

Hz, db ?

uint16_t AudioProxy::frequency1
 

Hz, db ?

uint16_t AudioProxy::amplitude1
 

Hz, db ?

uint16_t AudioProxy::frequency2
 

Hz, db ?

uint16_t AudioProxy::amplitude2
 

Hz, db ?

uint16_t AudioProxy::frequency3
 

Hz, db ?

uint16_t AudioProxy::amplitude3
 

Hz, db ?

uint16_t AudioProxy::frequency4
 

Hz, db ?

uint16_t AudioProxy::amplitude4
 

Hz, db ?


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