|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectauditory.sampled.AbstractBufferedSoundOp
auditory.sampled.AbstractBufferedSoundBinaryOp
public abstract class AbstractBufferedSoundBinaryOp
An abstract class that implements the BufferedSoundBinaryOp interface. This method can be extended by classes that want to implement the BufferedSoundBinaryOp interface.
| Constructor Summary | |
|---|---|
AbstractBufferedSoundBinaryOp()
|
|
| Method Summary | |
|---|---|
abstract void |
applyFilter(double[] source1,
double[] source2,
double[] destination)
Apply the filter (sample-by-sample). |
void |
applyFilter(java.util.Iterator<double[]> source1,
java.util.Iterator<double[]> source2,
java.util.Iterator<double[]> destination)
Apply the filter to all of the channels |
protected void |
checkArguments(BufferedSound a,
BufferedSound b)
Check to see if two BufferedSound objects are compatible. |
BufferedSound |
filter(BufferedSound src1,
BufferedSound src2,
BufferedSound dest)
A two-source/one-destination filter. |
| Methods inherited from class auditory.sampled.AbstractBufferedSoundOp |
|---|
createCompatibleDestinationSound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractBufferedSoundBinaryOp()
| Method Detail |
|---|
public abstract void applyFilter(double[] source1,
double[] source2,
double[] destination)
source1 - The signal from source1source2 - The signal from source2destination - The destination signals
public void applyFilter(java.util.Iterator<double[]> source1,
java.util.Iterator<double[]> source2,
java.util.Iterator<double[]> destination)
source1 - The signals from source1source2 - The signals from source2destination - The destination signals
protected void checkArguments(BufferedSound a,
BufferedSound b)
throws java.lang.IllegalArgumentException
checkArguments in class AbstractBufferedSoundOpjava.lang.IllegalArgumentException - If they are not compatible
public BufferedSound filter(BufferedSound src1,
BufferedSound src2,
BufferedSound dest)
throws java.lang.IllegalArgumentException
filter in interface BufferedSoundBinaryOpsrc1 - One operand (i.e., one sound to operate on)src2 - The other operand (i.e., other sound to operate on)dest - An empty sound to hold the result (or null)
java.lang.IllegalArgumentException - if the sounds don't match
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||