final synchronized void prepareForDelivery ( int length , int index , long sequence , long timeUs ) { frameLength = length ; dataBuffer . setNewFrameSize ( length ) ; sequenceNumber = sequence ; captureTime = timeUs ; bufferIndex = index ; recycled = false ; }
This method marks this frame as ready to be delivered to the user as its buffer has just been filled with a new frame of the given length .