projectpossibility
Class Monitor
java.lang.Object
projectpossibility.Monitor
- All Implemented Interfaces:
- java.lang.Runnable
public class Monitor
- extends java.lang.Object
- implements java.lang.Runnable
Monitor controls microphone input.
Method Summary |
void |
run()
Initiates the main record loop. |
void |
stop()
Stops the record loop. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Monitor
public Monitor(javax.microedition.media.Player p,
Graph g,
javax.microedition.lcdui.Display d,
int alertThreshold,
FloorLevel floor,
CMatchableSound[] sounds)
- Parameters:
alertThreshold
- controls volume required to trigger an alertfloor
- Calibrated for to cut down on background noise.sounds
- Array of recognizable sounds
stop
public void stop()
- Stops the record loop.
run
public void run()
- Initiates the main record loop.
This loop samples data, converts it to a byte array and updates the graph.
- Specified by:
run
in interface java.lang.Runnable