public class SampleSizeAudioInputStream extends AudioInputStream
Modifier and Type | Class and Description |
---|---|
static interface |
SampleSizeAudioInputStream.Dither
Dither function used when reducing bit depth.
|
format, frameLength, framePos, frameSize
Constructor and Description |
---|
SampleSizeAudioInputStream(AudioInputStream stream,
int sampleSizeInBits)
Constructs an
AudioInputStream for 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, read
public 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 AudioInputStream
IOException
public int available() throws IOException
available
in class AudioInputStream
IOException
public void mark(int readlimit)
mark
in class AudioInputStream
public boolean markSupported()
markSupported
in class AudioInputStream
public void reset() throws IOException
reset
in class AudioInputStream
IOException
public long skip(long len) throws IOException
skip
in class AudioInputStream
IOException
Copyright © 2011–2018 tagtraum industries incorporated. All rights reserved.