Class AudioBufferProcessor


  • public abstract class AudioBufferProcessor
    extends AudioFrameProcessor
    Base class to process audio data buffers.
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    • Method Detail

      • setData

        public boolean setData​(byte[] inData,
                               int offset,
                               int length)
      • process

        public void process​(byte[] inData,
                            int offset,
                            int length)
        Process the buffer data. The audio frames are converted to float values for each channel.
        Parameters:
        inData - data buffer
        offset - offset in the buffer from where to read data
        length - length of data to process
      • processFrame

        protected abstract void processFrame​(float[] val)
        Process one frame. This method has to be implemented.
        Parameters:
        val -