jass.generators
Class RandOut

java.lang.Object
  extended by jass.engine.Out
      extended by jass.generators.RandOut
All Implemented Interfaces:
Source

public class RandOut
extends Out

Output white noise with amplitude [-1 +1]

Author:
Kees van den Doel (kvdoel@cs.ubc.ca)

Field Summary
protected  float gain
           
 
Fields inherited from class jass.engine.Out
buf, bufferSize, bufOld, lock
 
Constructor Summary
RandOut(int bufferSize)
           
 
Method Summary
protected  void computeBuffer()
          Compute the next buffer and store in member float[] buf.
 void setGain(float g)
           
 
Methods inherited from class jass.engine.Out
clearBuffer, copyToOld, getBuffer, getBuffer, getBufferSize, getTime, peekAtBuffer, resetTime, setBufferSize, setTime, setTimeAndNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gain

protected float gain
Constructor Detail

RandOut

public RandOut(int bufferSize)
Method Detail

setGain

public void setGain(float g)

computeBuffer

protected void computeBuffer()
Description copied from class: Out
Compute the next buffer and store in member float[] buf. This is the core processing method which will be implemented for each generator.

Specified by:
computeBuffer in class Out