auditory.sampled
Class MultiplyOp

java.lang.Object
  extended by auditory.sampled.AbstractBufferedSoundOp
      extended by auditory.sampled.AbstractBufferedSoundBinaryOp
          extended by auditory.sampled.MultiplyOp
All Implemented Interfaces:
BufferedSoundBinaryOp

public class MultiplyOp
extends AbstractBufferedSoundBinaryOp

A BufferedSoundBinaryOp that multiplies two (comparable) BufferedSound objects sample-by-sample

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Constructor Summary
MultiplyOp()
           
 
Method Summary
 void applyFilter(double[] source1, double[] source2, double[] destination)
          Multiply (sample-by-sample) the two signals
 
Methods inherited from class auditory.sampled.AbstractBufferedSoundBinaryOp
applyFilter, checkArguments, 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

MultiplyOp

public MultiplyOp()
Method Detail

applyFilter

public void applyFilter(double[] source1,
                        double[] source2,
                        double[] destination)
Multiply (sample-by-sample) the two signals

Specified by:
applyFilter in class AbstractBufferedSoundBinaryOp
Parameters:
source1 - The signal in source 1
source2 - The signal in source 2
destination - The resulting destination signal


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers