comirva.audio.util
Class MPlayerAudioInputStream
java.lang.Object
java.io.InputStream
javax.sound.sampled.AudioInputStream
comirva.audio.util.MPlayerAudioInputStream
- All Implemented Interfaces:
- Closeable
public class MPlayerAudioInputStream
- extends AudioInputStream
in
protected BufferedInputStream in
sampleRate
protected float sampleRate
tempFile
protected File tempFile
DEBUG
protected static final boolean DEBUG
- See Also:
- Constant Field Values
tempFolder
protected static final File tempFolder
MPlayerAudioInputStream
public MPlayerAudioInputStream(File inputFile,
float sampleRate)
available
public int available()
throws IOException
- Overrides:
available
in class AudioInputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class AudioInputStream
- Throws:
IOException
getFormat
public AudioFormat getFormat()
- Overrides:
getFormat
in class AudioInputStream
getFrameLength
public long getFrameLength()
- Overrides:
getFrameLength
in class AudioInputStream
mark
public void mark(int readlimit)
- Overrides:
mark
in class AudioInputStream
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class AudioInputStream
read
public int read()
throws IOException
- Overrides:
read
in class AudioInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class AudioInputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read
in class AudioInputStream
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class AudioInputStream
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class AudioInputStream
- Throws:
IOException
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable