auditory.sampled
Class AbstractBufferedSoundOp
java.lang.Object
auditory.sampled.AbstractBufferedSoundOp
- Direct Known Subclasses:
- AbstractBufferedSoundBinaryOp, AbstractBufferedSoundUnaryOp
public abstract class AbstractBufferedSoundOp
- extends java.lang.Object
An abstract class that implements the BufferedSoundOp
interface. This method can be extended by classes that
want to implement, for example, the BufferedSoundUnaryOp and
BufferedSoundUnaryOp interfaces.
- See Also:
- "The Design and Implementation of Multimedia Software © 2011"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBufferedSoundOp
public AbstractBufferedSoundOp()
createCompatibleDestinationSound
public BufferedSound createCompatibleDestinationSound(BufferedSound src)
- Creates a BufferedSound with the same sampling rate and length
as the source. All of the samples in the new BufferedSound will
be 0.
- Parameters:
src
- The BufferedSound to mimic
checkArguments
protected void checkArguments(BufferedSound a,
BufferedSound b)
throws java.lang.IllegalArgumentException
- Check to see if two BufferedSound objects are compatible.
- Throws:
java.lang.IllegalArgumentException
- If they are not compatible
Design and Implementation of Multimedia Software, Jones and Bartlett Publishers