public abstract class

AudioStream.PacketInfo

extends java.lang.Object

 java.lang.Object

↳androidx.camera.video.internal.audio.AudioStream.PacketInfo

Overview

The information of a read operation.

Summary

Constructors
publicPacketInfo()

Methods
public abstract intgetSizeInBytes()

Total data size in bytes.

public abstract longgetTimestampNs()

Get the beginning timestamp.

public static AudioStream.PacketInfoof(int sizeInBytes, long timestampNs)

Creates a PacketInfo.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public PacketInfo()

Methods

public static AudioStream.PacketInfo of(int sizeInBytes, long timestampNs)

Creates a PacketInfo.

Parameters:

sizeInBytes: the total size in bytes.
timestampNs: the timestamp in nanoseconds.

public abstract int getSizeInBytes()

Total data size in bytes.

public abstract long getTimestampNs()

Get the beginning timestamp.