public abstract class AudioEffect
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ADD
An identifier for adding the forward memory locations to the next data received by an AudioEffect.
|
static int |
DO_NOTHING
An identifier for ignoring the forward memory locations when receiving future inputs.
|
static int |
MULTIPLY
An identifier for multiplying the forward memory locations to the next data received by an AudioEffect.
|
Constructor and Description |
---|
AudioEffect(int backwardMemSize,
int forwardMemSize)
Creates an audio effect with a particular backward and forward memory size.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getData()
Gets data array
|
int |
getStart()
Gets the starting position of the current memory chunk with the previous and forward memory prepended and
appended to it
|
void |
initialiseForward(double val)
Initializes the forward memory values to the value specified.
|
void |
initialiseForward(double[] vals)
Initializes the forward values to the values specified.
|
void |
initialisePrevious(double val)
Initializes the previous memory values to the value specified.
|
void |
initialisePrevious(double[] vals)
Initializes the previous memory values to the values specified.
|
void |
postProcess(double[] data)
This function copies the current data to the forward memory for use next time and inserts the processed values
back into the given array.
|
void |
preProcess(double[] data)
This function inserts the given data into an array which comprises of the previous data, the given data and the
forward data respectively.
|
void |
setForwardMathOperation(int mode)
An function setting the behaviour of how AudioEffect applies the forward memory locations to the next data
received by an AudioEffect.
|
public static final int ADD
public static final int MULTIPLY
public static final int DO_NOTHING
public AudioEffect(int backwardMemSize, int forwardMemSize)
public void initialisePrevious(double val)
public void initialisePrevious(double[] vals) throws IncompatibleSizeException
IncompatibleSizeException
public void initialiseForward(double val)
public void initialiseForward(double[] vals) throws IncompatibleSizeException
IncompatibleSizeException
public void setForwardMathOperation(int mode)
public int getStart()
public double[] getData()
public void preProcess(double[] data)
public void postProcess(double[] data) throws IncompatibleSizeException
IncompatibleSizeException