/** * Indicates the end point for the current sample, making it available for consumption. * * @param sampleTimeUs The sample timestamp. * @param flags Flags that accompany the sample. See {@link SampleHolder#flags}. * @param position The position of the sample data in the rolling buffer. * @param size The size of the sample, in bytes. * @param encryptionKey The encryption key associated with the sample, or null. */ public void commitSample(long sampleTimeUs, int flags, long position, int size, byte[] encryptionKey) { infoQueue.commitSample(sampleTimeUs, flags, position, size, encryptionKey); }