Package ipsk.audio.io

Class KnownLengthAudioInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class KnownLengthAudioInputStream
    extends javax.sound.sampled.AudioInputStream
    Audio input stream which stores the frame length if available. Wraps audio input streams which return AudioSystem.NOT_SPECIFIED, but the length processed and known.
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    • Field Summary

      • Fields inherited from class javax.sound.sampled.AudioInputStream

        format, framePos, frameSize
    • Constructor Summary

      Constructors 
      Constructor Description
      KnownLengthAudioInputStream​(javax.sound.sampled.AudioInputStream srcAudioInputStream, long knownFrameLength)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getFrameLength()  
      • Methods inherited from class javax.sound.sampled.AudioInputStream

        available, close, getFormat, mark, markSupported, read, read, read, reset, skip
      • Methods inherited from class java.io.InputStream

        readAllBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFrameLength

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