Class BaseAudioProcessor

    • Constructor Detail

      • BaseAudioProcessor

        public BaseAudioProcessor()
        Deprecated.
    • Method Detail

      • isActive

        public boolean isActive()
        Deprecated.
        Description copied from interface: AudioProcessor
        Returns whether the processor is configured and will process input buffers.
        Specified by:
        isActive in interface AudioProcessor
      • getOutput

        @CallSuper
        public ByteBuffer getOutput()
        Deprecated.
        Description copied from interface: AudioProcessor
        Returns a buffer containing processed output data between its position and limit. The buffer will always be a direct byte buffer with native byte order. Calling this method invalidates any previously returned buffer. The buffer will be empty if no output is available.
        Specified by:
        getOutput in interface AudioProcessor
        Returns:
        A buffer containing processed output data between its position and limit.
      • flush

        public final void flush()
        Deprecated.
        Description copied from interface: AudioProcessor
        Clears any buffered data and pending output. If the audio processor is active, also prepares the audio processor to receive a new stream of input in the last configured (pending) format.
        Specified by:
        flush in interface AudioProcessor
      • reset

        public final void reset()
        Deprecated.
        Description copied from interface: AudioProcessor
        Resets the processor to its unconfigured state, releasing any resources.
        Specified by:
        reset in interface AudioProcessor
      • replaceOutputBuffer

        protected final ByteBuffer replaceOutputBuffer​(int size)
        Deprecated.
        Replaces the current output buffer with a buffer of at least size bytes and returns it. Callers should write to the returned buffer then ByteBuffer.flip() it so it can be read via getOutput().
      • hasPendingOutput

        protected final boolean hasPendingOutput()
        Deprecated.
        Returns whether the current output buffer has any data remaining.
      • onQueueEndOfStream

        protected void onQueueEndOfStream()
        Deprecated.
        Called when the end-of-stream is queued to the processor.
      • onFlush

        protected void onFlush()
        Deprecated.
        Called when the processor is flushed, directly or as part of resetting.
      • onReset

        protected void onReset()
        Deprecated.
        Called when the processor is reset.