Enki::ActiveSoundSource Class Reference
[Interaction classes]

#include <ActiveSoundSource.h>

Inheritance diagram for Enki::ActiveSoundSource:

Enki::LocalInteraction List of all members.

Detailed Description

Time limited sound emitter.


Public Member Functions

 ActiveSoundSource (Robot *owner, double r, unsigned channels)
 Constructor.
 ~ActiveSoundSource ()
 Destructor.
virtual void init ()
virtual void objectStep (double dt, PhysicalObject *po, World *w)
void setSoundRange (double range)
 Set the range of this sound interraction.
double getSound (unsigned channel)
 Get the value associated with channel.
double getMaxSound (int *channel)
 Get the maximum value, set channel to the channel where this maximum lies.
void setSound (unsigned channel, double signal)
 Set the value of channel to signal using a simplified model.
void realisticSetSound (unsigned channel, double signal)
 Set the value of channel to signal using a more realistic model.

Public Attributes

unsigned noOfChannels
 No of channels of this sound source.
double * pitch
 Produced sound: vector of different pitch as they were channels.
bool enableFlag
 Sound activity.
double elapsedTime
 Elapsed time since last activation.
double activityTime
 Activity time.


The documentation for this class was generated from the following files:
Generated on Sun Mar 1 03:10:09 2009 for Enki by  doxygen 1.5.1