org.jscience.media.audio.dsp.monitors
Class SpectrumAnalyzer

java.lang.Object
  extended by org.jscience.media.audio.dsp.AbstractAudio
      extended by org.jscience.media.audio.dsp.monitors.SpectrumAnalyzer
All Implemented Interfaces:
Named

public class SpectrumAnalyzer
extends AbstractAudio

DOCUMENT ME!


Field Summary
 
Fields inherited from class org.jscience.media.audio.dsp.AbstractAudio
ALLTYPES, MONITOR, next, NOTYPE, previous, PROCESSOR, SAMPLEBUFFERSIZE, SINK, SOURCE
 
Constructor Summary
SpectrumAnalyzer(java.lang.String name)
          Spectrum Analyzer device class constructor
 
Method Summary
 int getSamples(short[] buffer, int length)
          DOCUMENT ME!
 void minMaxChannels(int min, int max, int preferred)
          DOCUMENT ME!
 void minMaxSamplingRate(int min, int max, int preferred)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.audio.dsp.AbstractAudio
doReset, equals, getByPass, getName, getNumberOfChannels, getSamplingRate, hexo, hexo, hexo, hexo, negotiateNumberOfChannels, negotiateSamplingRate, o, propagateReset, reset, setByPass, setChannelsRecursive, setNumberOfChannels, setSamplingRate, setSamplingRateRecursive, toString, typeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpectrumAnalyzer

public SpectrumAnalyzer(java.lang.String name)
Spectrum Analyzer device class constructor

Parameters:
name - name is the name to be shown in the title bar of the spectrum analyzer's UI for identification purposes.
Method Detail

getSamples

public int getSamples(short[] buffer,
                      int length)
DOCUMENT ME!

Specified by:
getSamples in class AbstractAudio
Parameters:
buffer - DOCUMENT ME!
length - DOCUMENT ME!
Returns:
DOCUMENT ME!

minMaxSamplingRate

public void minMaxSamplingRate(int min,
                               int max,
                               int preferred)
DOCUMENT ME!

Overrides:
minMaxSamplingRate in class AbstractAudio
Parameters:
min - DOCUMENT ME!
max - DOCUMENT ME!
preferred - DOCUMENT ME!

minMaxChannels

public void minMaxChannels(int min,
                           int max,
                           int preferred)
DOCUMENT ME!

Overrides:
minMaxChannels in class AbstractAudio
Parameters:
min - DOCUMENT ME!
max - DOCUMENT ME!
preferred - DOCUMENT ME!