public class FilteredSoundStream extends FilterInputStream
SoundFilterin| 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, skippublic 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 FilterInputStreamsamples - the samplesoffset - the offsetlength - the length of sampleIOException - the IOExceptionCopyright © 2021 City of Paris. All rights reserved.