AudioFile.ReadFixedPackets 方法

定义

重载

ReadFixedPackets(Int64, Int32, Byte[])

nPackets 字节读入 buffer,从 开始 inStartingPacket

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[]

返回

适用于

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

返回

适用于