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
輸出緩衝區的大小 (以位元組為單位) 。
傳回
已讀取之封包的封包描述項陣列。