public class ResamplerAudioInputStream extends AudioInputStream
format, frameLength, framePos, frameSize
Constructor and Description |
---|
ResamplerAudioInputStream(AudioInputStream stream,
Rational factor)
Constructs an
AudioInputStream for the desired sampling rate. |
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 ResamplerAudioInputStream(AudioInputStream stream, Rational factor)
AudioInputStream
for the desired sampling rate.stream
- stream to read fromfactor
- re-sampling factor (numerator=upFactor, denominator=downFactor)IllegalArgumentException
- if a filter for the factor max(upFactor,downFactor)
is not supported or the format is not supportedpublic 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.