net.cscott.sdr.recog
Class LevelMonitor
java.lang.Object
edu.cmu.sphinx.util.props.ConfigurableAdapter
edu.cmu.sphinx.frontend.BaseDataProcessor
net.cscott.sdr.recog.LevelMonitor
- All Implemented Interfaces:
- DataProcessor, Configurable
public class LevelMonitor
- extends BaseDataProcessor
LevelMonitor
tracks the raw data coming from the microphone
and keeps a record of the maximum level of each data packet. This
is used by the graphical front end to display current input levels.
- Author:
- C. Scott Ananian
LevelMonitor
public LevelMonitor()
getLevels
public void getLevels(List<LevelMonitor.LevelMeasurement> l)
- Add all the level measurements taken since the last time this
method was called (up to a maximum of 4096 measurements) to the
given list. This method is thread-safe.
getData
public Data getData()
throws DataProcessingException
- Specified by:
getData
in interface DataProcessor
- Specified by:
getData
in class BaseDataProcessor
- Throws:
DataProcessingException
Copyright © 2006-2009 C. Scott Ananian