Class TargetDataLineInputStream

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

    public class TargetDataLineInputStream
    extends java.io.InputStream
    • Field Detail

      • ERROR_ON_BUFFER_OVER_UNDERRUN

        public static final boolean ERROR_ON_BUFFER_OVER_UNDERRUN
        See Also:
        Constant Field Values
      • DEFAULT_MAX_BUFFER_FILL

        public static double DEFAULT_MAX_BUFFER_FILL
    • Constructor Detail

      • TargetDataLineInputStream

        public TargetDataLineInputStream​(javax.sound.sampled.TargetDataLine line)
    • Method Detail

      • isActive

        public boolean isActive()
        Returns:
        the active
      • setListener

        public void setListener​(TargetDataLineListener listener)
        Parameters:
        listener - the listener to set
      • reset

        public void reset()
        Overrides:
        reset in class java.io.InputStream
      • stop

        public void stop()
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • getFramePosition

        public long getFramePosition()
      • getMaxBufferFill

        public double getMaxBufferFill()
      • setMaxBufferFill

        public void setMaxBufferFill​(double maxBufferFill)