AudioFile.ReadFixedPackets 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ReadFixedPackets(Int64, Int32, Byte[]) |
将 |
ReadFixedPackets(Int64, Int32, Byte[], AudioFileError) |
读取固定数量的音频数据。 |
ReadFixedPackets(Boolean, Int64, Int32, Byte[], Int32, Int32) |
读取固定数量的音频数据。 |
ReadFixedPackets(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError) |
读取固定数量的音频数据。 |
ReadFixedPackets(Int64, Int32, Byte[])
将 nPackets
字节读入 buffer
,从 开始 inStartingPacket
。
public AudioToolbox.AudioStreamPacketDescription[] ReadFixedPackets (long inStartingPacket, int nPackets, byte[] buffer);
member this.ReadFixedPackets : int64 * int * byte[] -> AudioToolbox.AudioStreamPacketDescription[]
参数
- inStartingPacket
- Int64
- nPackets
- Int32
- buffer
- Byte[]
返回
适用于
ReadFixedPackets(Int64, Int32, Byte[], AudioFileError)
读取固定数量的音频数据。
public AudioToolbox.AudioStreamPacketDescription[] ReadFixedPackets (long inStartingPacket, int nPackets, byte[] buffer, out AudioToolbox.AudioFileError error);
member this.ReadFixedPackets : int64 * int * byte[] * -> AudioToolbox.AudioStreamPacketDescription[]
参数
- inStartingPacket
- Int64
- nPackets
- Int32
- buffer
- Byte[]
- error
- AudioFileError
返回
适用于
ReadFixedPackets(Boolean, Int64, Int32, Byte[], Int32, Int32)
读取固定数量的音频数据。
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[]
参数
- useCache
- Boolean
- inStartingPacket
- Int64
- nPackets
- Int32
- buffer
- Byte[]
- offset
- Int32
- count
- Int32
返回
适用于
ReadFixedPackets(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError)
读取固定数量的音频数据。
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 * -> AudioToolbox.AudioStreamPacketDescription[]
参数
- useCache
- Boolean
- inStartingPacket
- Int64
- nPackets
- Int32
- buffer
- Byte[]
- offset
- Int32
- count
- Int32
- error
- AudioFileError