AudioFile.ReadFixedPackets 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.
Overloads
| Name | Description |
|---|---|
| ReadFixedPackets(Int64, Int32, Byte[]) |
Reads |
| ReadFixedPackets(Int64, Int32, Byte[], AudioFileError) |
Reads |
| ReadFixedPackets(Boolean, Int64, Int32, Byte[], Int32, Int32) |
Reads |
| ReadFixedPackets(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError) |
Reads |
ReadFixedPackets(Int64, Int32, Byte[])
Reads nPackets bytes into buffer, starting at inStartingPacket.
public AudioToolbox.AudioStreamPacketDescription[]? ReadFixedPackets(long inStartingPacket, int nPackets, byte[] buffer);
member this.ReadFixedPackets : int64 * int * byte[] -> AudioToolbox.AudioStreamPacketDescription[]
Parameters
- inStartingPacket
- Int64
The index of the first packet to read.
- nPackets
- Int32
On input the number of packets to read, upon return the number of packets actually read.
- buffer
- Byte[]
The output buffer where packets are written.
Returns
Array of packet descriptors for the packets that were read.
Applies to
ReadFixedPackets(Int64, Int32, Byte[], AudioFileError)
Reads nPackets bytes into buffer, starting at inStartingPacket.
public AudioToolbox.AudioStreamPacketDescription[]? ReadFixedPackets(long inStartingPacket, int nPackets, byte[] buffer, out AudioToolbox.AudioFileError error);
member this.ReadFixedPackets : int64 * int * byte[] * AudioFileError -> AudioToolbox.AudioStreamPacketDescription[]
Parameters
- inStartingPacket
- Int64
The index of the first packet to read.
- nPackets
- Int32
On input the number of packets to read, upon return the number of packets actually read.
- buffer
- Byte[]
The output buffer where packets are written.
- error
- AudioFileError
Success if successful, or an error code otherwise.
Returns
Array of packet descriptors for the packets that were read.
Applies to
ReadFixedPackets(Boolean, Int64, Int32, Byte[], Int32, Int32)
Reads nPackets bytes into buffer, starting at inStartingPacket.
public AudioToolbox.AudioStreamPacketDescription[]? ReadFixedPackets(bool useCache, long inStartingPacket, int nPackets, byte[] buffer, int offset, int count);
member this.ReadFixedPackets : bool * int64 * int * byte[] * int * int -> AudioToolbox.AudioStreamPacketDescription[]
Parameters
- useCache
- Boolean
If the data should be cached.
- inStartingPacket
- Int64
The index of the first packet to read.
- nPackets
- Int32
On input the number of packets to read, upon return the number of packets actually read.
- buffer
- Byte[]
The output buffer where packets are written.
- offset
- Int32
The offset in the output buffer where to start writing packets to.
- count
- Int32
The number of bytes to read.
Returns
Array of packet descriptors for the packets that were read.
Applies to
ReadFixedPackets(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError)
Reads nPackets bytes into buffer, starting at inStartingPacket.
public AudioToolbox.AudioStreamPacketDescription[]? ReadFixedPackets(bool useCache, long inStartingPacket, int nPackets, byte[] buffer, int offset, int count, out AudioToolbox.AudioFileError error);
member this.ReadFixedPackets : bool * int64 * int * byte[] * int * int * AudioFileError -> AudioToolbox.AudioStreamPacketDescription[]
Parameters
- useCache
- Boolean
If the data should be cached.
- inStartingPacket
- Int64
The index of the first packet to read.
- nPackets
- Int32
On input the number of packets to read, upon return the number of packets actually read.
- buffer
- Byte[]
The output buffer where packets are written.
- offset
- Int32
The offset in the output buffer where to start writing packets to.
- count
- Int32
The number of bytes to read.
- error
- AudioFileError
Success if successful, or an error code otherwise.
Returns
Array of packet descriptors for the packets that were read.