public class SampleSizeAudioInputStream extends AudioInputStream
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | SampleSizeAudioInputStream.DitherDither function used when reducing bit depth. | 
format, frameLength, framePos, frameSize| Constructor and Description | 
|---|
| SampleSizeAudioInputStream(AudioInputStream stream,
                          int sampleSizeInBits)Constructs an  AudioInputStreamfor the desired sample size. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | available() | 
| void | mark(int readlimit) | 
| boolean | markSupported() | 
| int | read(byte[] b,
    int off,
    int len) | 
| void | reset() | 
| long | skip(long len) | 
close, getFormat, getFrameLength, read, readpublic SampleSizeAudioInputStream(AudioInputStream stream, int sampleSizeInBits)
AudioInputStream for the desired sample size.stream - stream to read fromsampleSizeInBits - new sample size in bitspublic int read(byte[] b,
                int off,
                int len)
         throws IOException
read in class AudioInputStreamIOExceptionpublic int available()
              throws IOException
available in class AudioInputStreamIOExceptionpublic void mark(int readlimit)
mark in class AudioInputStreampublic boolean markSupported()
markSupported in class AudioInputStreampublic void reset()
           throws IOException
reset in class AudioInputStreamIOExceptionpublic long skip(long len)
          throws IOException
skip in class AudioInputStreamIOExceptionCopyright © 2011–2018 tagtraum industries incorporated. All rights reserved.