public class FilteredSoundStream extends FilterInputStream
SoundFilter
in
Constructor and Description |
---|
FilteredSoundStream(AudioInputStream in,
SoundFilter soundFilter)
Creates a new FilteredSoundStream object with the specified InputStream
and SoundFilter.
|
Modifier and Type | Method and Description |
---|---|
int |
read(byte[] samples,
int offset,
int length)
Overrides the FilterInputStream method to apply this filter whenever
bytes are read
|
available, close, mark, markSupported, read, read, reset, skip
public FilteredSoundStream(AudioInputStream in, SoundFilter soundFilter)
in
- the file sound streamsoundFilter
- the sound filterpublic int read(byte[] samples, int offset, int length) throws IOException
read
in class FilterInputStream
samples
- the samplesoffset
- the offsetlength
- the length of sampleIOException
- the IOExceptionCopyright © 2018 City of Paris. All rights reserved.