sdr 0.7

net.cscott.sdr.recog
Class LevelMonitor

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
          extended by 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

Nested Class Summary
static class LevelMonitor.LevelMeasurement
          A volume measurement of an audio frame.
 
Field Summary
 
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
logger
 
Constructor Summary
LevelMonitor()
           
 
Method Summary
 Data getData()
           
 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.
 
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor
getPredecessor, getTimer, initialize, setPredecessor
 
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
getName, initLogger, newProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.cmu.sphinx.util.props.Configurable
newProperties
 

Constructor Detail

LevelMonitor

public LevelMonitor()
Method Detail

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

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian