Modifier

Partager via


AudioFile.ByteToPacket(Int64, Int32, Boolean) Method

Definition

Converts a position on a stream to its packet location.

public long ByteToPacket (long byteval, out int byteOffsetInPacket, out bool isEstimate);
member this.ByteToPacket : int64 *  *  -> int64

Parameters

byteval
Int64

The byte position.

byteOffsetInPacket
Int32

Offset within the packet.

isEstimate
Boolean

True if the return value is an estimate.

Returns

The packet where the byte position would be, or -1 on error.

Applies to