org.jscience.media.audio.dsp.sources
Class StereoOscillator

java.lang.Object
  extended by org.jscience.media.audio.dsp.AbstractAudio
      extended by org.jscience.media.audio.dsp.sources.Oscillator
          extended by org.jscience.media.audio.dsp.sources.StereoOscillator
All Implemented Interfaces:
Named

public class StereoOscillator
extends Oscillator

DOCUMENT ME!


Field Summary
 
Fields inherited from class org.jscience.media.audio.dsp.sources.Oscillator
amplitudeAdj, frequency, negComplete, NOISE, NOTYPE, numberOfChannels, pos, sampleRate, SINEWAVE, SQUAREWAVE, TRIANGLEWAVE, type, waveTable
 
Fields inherited from class org.jscience.media.audio.dsp.AbstractAudio
ALLTYPES, MONITOR, next, previous, PROCESSOR, SAMPLEBUFFERSIZE, SINK, SOURCE
 
Constructor Summary
StereoOscillator(int type, int frequencyL, int frequencyR, int sampleRate, NegotiationListener negComplete)
          Creates a new StereoOscillator object.
StereoOscillator(NegotiationListener negComplete)
          Creates a new StereoOscillator object.
 
Method Summary
 double getLeftAmplitudeAdj()
          DOCUMENT ME!
 int getLeftFrequency()
          DOCUMENT ME!
 double getRightAmplitudeAdj()
          DOCUMENT ME!
 int getRightFrequency()
          DOCUMENT ME!
 int getSamples(short[] buffer, int length)
          DOCUMENT ME!
 void setLeftAmplitudeAdj(double amplitudeAdj)
          DOCUMENT ME!
 void setLeftFrequency(int frequency)
          DOCUMENT ME!
 void setRightAmplitudeAdj(double amplitudeAdj)
          DOCUMENT ME!
 void setRightFrequency(int frequency)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.audio.dsp.sources.Oscillator
buildWaveTable, getAmplitudeAdj, getFrequency, getNumberOfChannels, getOscType, getSampleRate, minMaxChannels, minMaxSamplingRate, setAmplitudeAdj, setFrequency, setNumberOfChannels, setOscType, setSampleRate
 
Methods inherited from class org.jscience.media.audio.dsp.AbstractAudio
doReset, equals, getByPass, getName, getSamplingRate, hexo, hexo, hexo, hexo, negotiateNumberOfChannels, negotiateSamplingRate, o, propagateReset, reset, setByPass, setChannelsRecursive, setSamplingRate, setSamplingRateRecursive, toString, typeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StereoOscillator

public StereoOscillator(int type,
                        int frequencyL,
                        int frequencyR,
                        int sampleRate,
                        NegotiationListener negComplete)
Creates a new StereoOscillator object.

Parameters:
type - DOCUMENT ME!
frequencyL - DOCUMENT ME!
frequencyR - DOCUMENT ME!
sampleRate - DOCUMENT ME!
negComplete - DOCUMENT ME!

StereoOscillator

public StereoOscillator(NegotiationListener negComplete)
Creates a new StereoOscillator object.

Parameters:
negComplete - DOCUMENT ME!
Method Detail

getSamples

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

Overrides:
getSamples in class Oscillator
Parameters:
buffer - DOCUMENT ME!
length - DOCUMENT ME!
Returns:
DOCUMENT ME!

getLeftFrequency

public int getLeftFrequency()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setLeftFrequency

public void setLeftFrequency(int frequency)
DOCUMENT ME!

Parameters:
frequency - DOCUMENT ME!

getRightFrequency

public int getRightFrequency()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setRightFrequency

public void setRightFrequency(int frequency)
DOCUMENT ME!

Parameters:
frequency - DOCUMENT ME!

getLeftAmplitudeAdj

public double getLeftAmplitudeAdj()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setLeftAmplitudeAdj

public void setLeftAmplitudeAdj(double amplitudeAdj)
DOCUMENT ME!

Parameters:
amplitudeAdj - DOCUMENT ME!

getRightAmplitudeAdj

public double getRightAmplitudeAdj()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setRightAmplitudeAdj

public void setRightAmplitudeAdj(double amplitudeAdj)
DOCUMENT ME!

Parameters:
amplitudeAdj - DOCUMENT ME!