public interface SoundListener
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
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.
|
void loud(SensorPort port, int level)
port
- the port where the sensor is plugged inlevel
- the current sound levelvoid quiet(SensorPort port, int level)
port
- the port where the sensor is plugged inlevel
- the current sound level