Class SimpleOutputBuffer

    • Method Detail

      • init

        public ByteBuffer init​(long timeUs,
                               int size)
        Initializes the buffer.
        Parameters:
        timeUs - The presentation timestamp for the buffer, in microseconds.
        size - An upper bound on the size of the data that will be written to the buffer.
        Returns:
        The data buffer, for convenience.
      • clear

        public void clear()
        Description copied from class: Buffer
        Clears the buffer.
        Overrides:
        clear in class Buffer
      • release

        public void release()
        Description copied from class: OutputBuffer
        Releases the output buffer for reuse. Must be called when the buffer is no longer needed.
        Specified by:
        release in class OutputBuffer