AudioFile.ReadPacketData 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError)
读取音频数据包。
public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (bool useCache, long inStartingPacket, ref int nPackets, byte[] buffer, int offset, ref int count, out AudioToolbox.AudioFileError error);
member this.ReadPacketData : bool * int64 * * byte[] * int * * -> AudioToolbox.AudioStreamPacketDescription[]
参数
- useCache
- Boolean
- inStartingPacket
- Int64
- nPackets
- Int32
- buffer
- Byte[]
- offset
- Int32
- count
- Int32
- error
- AudioFileError
返回
适用于
ReadPacketData(Boolean, Int64, Int32, IntPtr, Int32, AudioFileError, AudioStreamPacketDescription[])
读取音频数据包。
public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (bool useCache, long inStartingPacket, ref int nPackets, IntPtr buffer, ref int count, out AudioToolbox.AudioFileError error, AudioToolbox.AudioStreamPacketDescription[] descriptions);
member this.ReadPacketData : bool * int64 * * nativeint * * * AudioToolbox.AudioStreamPacketDescription[] -> AudioToolbox.AudioStreamPacketDescription[]
参数
- useCache
- Boolean
- inStartingPacket
- Int64
- nPackets
- Int32
- buffer
-
IntPtr
nativeint
- count
- Int32
- error
- AudioFileError
- descriptions
- AudioStreamPacketDescription[]
返回
适用于
ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError)
读取音频数据包。
public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (bool useCache, long inStartingPacket, int nPackets, byte[] buffer, int offset, int count, out AudioToolbox.AudioFileError error);
member this.ReadPacketData : bool * int64 * int * byte[] * int * int * -> AudioToolbox.AudioStreamPacketDescription[]
参数
- useCache
- Boolean
- inStartingPacket
- Int64
- nPackets
- Int32
- buffer
- Byte[]
- offset
- Int32
- count
- Int32
- error
- AudioFileError
返回
适用于
ReadPacketData(Boolean, Int64, Int32, IntPtr, Int32, AudioFileError)
读取音频数据包。
public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (bool useCache, long inStartingPacket, ref int nPackets, IntPtr buffer, ref int count, out AudioToolbox.AudioFileError error);
member this.ReadPacketData : bool * int64 * * nativeint * * -> AudioToolbox.AudioStreamPacketDescription[]
参数
- useCache
- Boolean
- inStartingPacket
- Int64
- nPackets
- Int32
- buffer
-
IntPtr
nativeint
- count
- Int32
- error
- AudioFileError
返回
适用于
ReadPacketData(Int64, Int32, Byte[], AudioFileError)
读取音频数据包。
public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (long inStartingPacket, int nPackets, byte[] buffer, out AudioToolbox.AudioFileError error);
member this.ReadPacketData : int64 * int * byte[] * -> AudioToolbox.AudioStreamPacketDescription[]
参数
- inStartingPacket
- Int64
- nPackets
- Int32
- buffer
- Byte[]
- error
- AudioFileError
返回
适用于
ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32)
从音频文件读取音频数据包。
public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (bool useCache, long inStartingPacket, ref int nPackets, byte[] buffer, int offset, ref int count);
member this.ReadPacketData : bool * int64 * * byte[] * int * -> AudioToolbox.AudioStreamPacketDescription[]
参数
- useCache
- Boolean
是否应缓存数据。
- inStartingPacket
- Int64
要读取的第一个数据包的索引。
- nPackets
- Int32
输入要读取的数据包数时,返回实际读取的数据包数。
- buffer
- Byte[]
写入数据包的输出缓冲区。
- offset
- Int32
要开始向其写入数据包的输出缓冲区中的偏移量。
- count
- Int32
输入时,输出缓冲区的大小 () 字节数,返回实际读取的字节数。
返回
读取的数据包的数据包描述符数组。
适用于
ReadPacketData(Boolean, Int64, Int32, IntPtr, Int32)
从音频文件读取音频数据包。
public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (bool useCache, long inStartingPacket, ref int nPackets, IntPtr buffer, ref int count);
member this.ReadPacketData : bool * int64 * * nativeint * -> AudioToolbox.AudioStreamPacketDescription[]
参数
- useCache
- Boolean
是否应缓存数据。
- inStartingPacket
- Int64
要读取的第一个数据包的索引。
- nPackets
- Int32
要读取的数据包数。
- buffer
-
IntPtr
nativeint
写入数据包的输出缓冲区。
- count
- Int32
输入时,输出缓冲区的大小 () 字节数,返回实际读取的字节数。
返回
读取的数据包的数据包描述符数组。
适用于
ReadPacketData(Int64, Int32, Byte[])
从音频文件读取音频数据包。
public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (long inStartingPacket, int nPackets, byte[] buffer);
member this.ReadPacketData : int64 * int * byte[] -> AudioToolbox.AudioStreamPacketDescription[]
参数
- inStartingPacket
- Int64
要读取的第一个数据包的索引。
- nPackets
- Int32
要读取的数据包数。
- buffer
- Byte[]
写入数据包的输出缓冲区。
返回
读取的数据包的数据包描述符数组。
适用于
ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32)
从音频文件读取音频数据包。
public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (bool useCache, long inStartingPacket, int nPackets, byte[] buffer, int offset, int count);
member this.ReadPacketData : bool * int64 * int * byte[] * int * int -> AudioToolbox.AudioStreamPacketDescription[]
参数
- useCache
- Boolean
是否应缓存数据。
- inStartingPacket
- Int64
要读取的第一个数据包的索引。
- nPackets
- Int32
要读取的数据包数。
- buffer
- Byte[]
写入数据包的输出缓冲区。
- offset
- Int32
要开始向其写入数据包的输出缓冲区中的偏移量。
- count
- Int32
输出缓冲区的大小 () 字节数。
返回
读取的数据包的数据包描述符数组。