Class ToFloatAudioFilter

    • Constructor Detail

      • ToFloatAudioFilter

        public ToFloatAudioFilter​(FloatPcmAudioFilter downstream,
                                  int channelCount)
        Parameters:
        downstream - The float PCM filter to pass the output to.
        channelCount - Number of channels in the PCM data.
    • Method Detail

      • process

        public void process​(float[][] input,
                            int offset,
                            int length)
                     throws java.lang.InterruptedException
        Parameters:
        input - An array of samples for each channel
        offset - Offset in the arrays to start at
        length - Length of the target sequence in arrays
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • process

        public void process​(short[] input,
                            int offset,
                            int length)
                     throws java.lang.InterruptedException
        Parameters:
        input - Array of samples
        offset - Offset in the array
        length - Length of the sequence in the array
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • process

        public void process​(java.nio.ShortBuffer buffer)
                     throws java.lang.InterruptedException
        Parameters:
        buffer - The buffer of samples
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • process

        public void process​(short[][] input,
                            int offset,
                            int length)
                     throws java.lang.InterruptedException
        Parameters:
        input - An array of samples for each channel
        offset - Offset in the array
        length - Length of the sequence in the array
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).