Class FloatAudioInputStream

    • Constructor Detail

      • FloatAudioInputStream

        public FloatAudioInputStream​(javax.sound.sampled.AudioInputStream srcAudioInputStream)
                              throws AudioFormatNotSupportedException
        Returns a float value audio stream. The float values a normalized to the scale -1 from to +1.
        Parameters:
        srcAudioInputStream - source audio stream
        Throws:
        AudioFormatNotSupportedException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface InterleavedFloatStream
        Throws:
        java.io.IOException
      • getFormat

        public javax.sound.sampled.AudioFormat getFormat()
      • getFrameLength

        public long getFrameLength()
      • read

        public int read​(double[][] normBuf,
                        int frameOffset,
                        int frames)
                 throws java.io.IOException
        Specified by:
        read in interface InterleavedFloatStream
        Throws:
        java.io.IOException
      • read

        public int read​(float[][] normBuf,
                        int frameOffset,
                        int frames)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • setFramePosition

        public void setFramePosition​(long newPos)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • skip

        public long skip​(long skip)
                  throws java.io.IOException
        Specified by:
        skip in interface InterleavedFloatStream
        Throws:
        java.io.IOException
      • skipFrames

        public long skipFrames​(long arg0)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isUseReadOnSkipException

        public boolean isUseReadOnSkipException()
      • setUseReadOnSkipException

        public void setUseReadOnSkipException​(boolean useReadOnSkipException)