AudioFile.ByteToPacket(Int64, Int32, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.