auditory.sampled
Class AddOp

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

public class AddOp
extends AbstractBufferedSoundBinaryOp

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

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

Constructor Summary
AddOp()
           
 
Method Summary
 void applyFilter(double[] source1, double[] source2, double[] destination)
          Adds (sample-by-sample) the two BufferedSound objects.
 
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

AddOp

public AddOp()
Method Detail

applyFilter

public void applyFilter(double[] source1,
                        double[] source2,
                        double[] destination)
Adds (sample-by-sample) the two BufferedSound objects.

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


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers