comirva.audio.util
Class MPlayerAudioInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.sound.sampled.AudioInputStream
          extended by comirva.audio.util.MPlayerAudioInputStream
All Implemented Interfaces:
java.io.Closeable

public class MPlayerAudioInputStream
extends javax.sound.sampled.AudioInputStream


Constructor Summary
MPlayerAudioInputStream(java.io.File inputFile, float sampleRate)
           
 
Method Summary
 int available()
           
 void close()
           
 javax.sound.sampled.AudioFormat getFormat()
           
 long getFrameLength()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPlayerAudioInputStream

public MPlayerAudioInputStream(java.io.File inputFile,
                               float sampleRate)
Method Detail

available

public int available()
              throws java.io.IOException
Overrides:
available in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException

getFormat

public javax.sound.sampled.AudioFormat getFormat()
Overrides:
getFormat in class javax.sound.sampled.AudioInputStream

getFrameLength

public long getFrameLength()
Overrides:
getFrameLength in class javax.sound.sampled.AudioInputStream

mark

public void mark(int readlimit)
Overrides:
mark in class javax.sound.sampled.AudioInputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class javax.sound.sampled.AudioInputStream

read

public int read()
         throws java.io.IOException
Overrides:
read in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
Overrides:
skip in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException