AudioFile.FrameToPacket(Int64, Int32) 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 an audio frame into a packet offset.
public long FrameToPacket (long frame, out int frameOffsetInPacket);
member this.FrameToPacket : int64 * -> int64
Parameters
- frame
- Int64
The frame.
- frameOffsetInPacket
- Int32
The offset inside the packet that the frame points to.
Returns
-1 on failure, otherwise the packet that represents the specified frame. Additionally, the offset within the packet is returned in the out parameter.