sound.echo
Class FilteredSoundStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by sound.echo.FilteredSoundStream
All Implemented Interfaces:
java.io.Closeable

public class FilteredSoundStream
extends java.io.FilterInputStream

The FilteredSoundStream class is a FilterInputStream that applies a SoundFilter to the underlying input stream.

See Also:
SoundFilter

Constructor Summary
FilteredSoundStream(java.io.InputStream in, sound.echo.SoundFilter soundFilter)
          Creates a new FilteredSoundStream object with the specified InputStream and SoundFilter.
 
Method Summary
 int read(byte[] samples, int offset, int length)
          Overrides the FilterInputStream method to apply this filter whenever bytes are read
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredSoundStream

public FilteredSoundStream(java.io.InputStream in,
                           sound.echo.SoundFilter soundFilter)
Creates a new FilteredSoundStream object with the specified InputStream and SoundFilter.

Method Detail

read

public int read(byte[] samples,
                int offset,
                int length)
         throws java.io.IOException
Overrides the FilterInputStream method to apply this filter whenever bytes are read

Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException