Enki  1.9
Public Member Functions | Public Attributes | List of all members
Enki::ActiveSoundSource Class Reference

Time limited sound emitter. More...

#include <ActiveSoundSource.h>

Inheritance diagram for Enki::ActiveSoundSource:
Enki::LocalInteraction

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 Member Functions inherited from Enki::LocalInteraction
 LocalInteraction ()
 Constructor.
 
 LocalInteraction (double range, Robot *owner)
 Constructor.
 
virtual ~LocalInteraction ()
 Destructor.
 
virtual void init (double dt, World *w)
 Init at each step.
 
virtual void objectStep (double dt, World *w, PhysicalObject *po)
 Interact with object. More...
 
virtual void wallsStep (double dt, World *w)
 Interact with walls. More...
 
virtual void finalize (double dt, World *w)
 Finalize at each step.
 
double getRange () const
 Return the range of the interaction.
 

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.
 

Additional Inherited Members

- Protected Attributes inherited from Enki::LocalInteraction
double r
 Radius of the local interaction.
 
Robotowner
 The physical object that owns the interaction.
 

Detailed Description

Time limited sound emitter.


The documentation for this class was generated from the following files: