ch.aplu.nxt
Interface SoundListener

All Known Implementing Classes:
SoundAdapter

public interface SoundListener

Class with declaration of callback methods for the sound sensor.


Method Summary
 void loud(SensorPort port, int level)
          Called when the sound becomes louder than the trigger level.
 void quiet(SensorPort port, int level)
          Called when the sound becomes lower than the trigger level.
 

Method Detail

loud

void loud(SensorPort port,
          int level)
Called when the sound becomes louder than the trigger level.

Parameters:
port - the port where the sensor is plugged in
level - the current sound level

quiet

void quiet(SensorPort port,
           int level)
Called when the sound becomes lower than the trigger level.

Parameters:
port - the port where the sensor is plugged in
level - the current sound level