Szerkesztés

Megosztás a következőn keresztül:


AudioFile.ReadPacketData Method

Definition

Overloads

ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError)

Reads packets of audio data.

ReadPacketData(Boolean, Int64, Int32, IntPtr, Int32, AudioFileError, AudioStreamPacketDescription[])

Reads packets of audio data.

ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError)

Reads packets of audio data.

ReadPacketData(Boolean, Int64, Int32, IntPtr, Int32, AudioFileError)

Reads packets of audio data.

ReadPacketData(Int64, Int32, Byte[], AudioFileError)

Reads packets of audio data.

ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32)

Reads packets of audio data from an audio file.

ReadPacketData(Boolean, Int64, Int32, IntPtr, Int32)

Reads packets of audio data from an audio file.

ReadPacketData(Int64, Int32, Byte[])

Reads packets of audio data from an audio file.

ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32)

Reads packets of audio data from an audio file.

ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError)

Reads packets of audio data.

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

Parameters

useCache
Boolean
inStartingPacket
Int64
nPackets
Int32
buffer
Byte[]
offset
Int32
count
Int32

Returns

Applies to

ReadPacketData(Boolean, Int64, Int32, IntPtr, Int32, AudioFileError, AudioStreamPacketDescription[])

Reads packets of audio data.

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

Parameters

useCache
Boolean
inStartingPacket
Int64
nPackets
Int32
buffer
IntPtr

nativeint

count
Int32

Returns

Applies to

ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32, AudioFileError)

Reads packets of audio data.

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

Parameters

useCache
Boolean
inStartingPacket
Int64
nPackets
Int32
buffer
Byte[]
offset
Int32
count
Int32

Returns

Applies to

ReadPacketData(Boolean, Int64, Int32, IntPtr, Int32, AudioFileError)

Reads packets of audio data.

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

Parameters

useCache
Boolean
inStartingPacket
Int64
nPackets
Int32
buffer
IntPtr

nativeint

count
Int32

Returns

Applies to

ReadPacketData(Int64, Int32, Byte[], AudioFileError)

Reads packets of audio data.

public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (long inStartingPacket, int nPackets, byte[] buffer, out AudioToolbox.AudioFileError error);
member this.ReadPacketData : int64 * int * byte[] *  -> AudioToolbox.AudioStreamPacketDescription[]

Parameters

inStartingPacket
Int64
nPackets
Int32
buffer
Byte[]

Returns

Applies to

ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32)

Reads packets of audio data from an audio file.

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

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

On input the size of the output buffer (in bytes), upon return the actual number of bytes read.

Returns

Array of packet descriptors for the packets that were read.

Applies to

ReadPacketData(Boolean, Int64, Int32, IntPtr, Int32)

Reads packets of audio data from an audio file.

public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (bool useCache, long inStartingPacket, ref int nPackets, IntPtr buffer, ref int count);
member this.ReadPacketData : bool * int64 *  * nativeint *  -> AudioToolbox.AudioStreamPacketDescription[]

Parameters

useCache
Boolean

If the data should be cached.

inStartingPacket
Int64

The index of the first packet to read.

nPackets
Int32

The number of packets to read.

buffer
IntPtr

nativeint

The output buffer where packets are written.

count
Int32

On input the size of the output buffer (in bytes), upon return the actual number of bytes read.

Returns

Array of packet descriptors for the packets that were read.

Applies to

ReadPacketData(Int64, Int32, Byte[])

Reads packets of audio data from an audio file.

public AudioToolbox.AudioStreamPacketDescription[] ReadPacketData (long inStartingPacket, int nPackets, byte[] buffer);
member this.ReadPacketData : int64 * int * byte[] -> AudioToolbox.AudioStreamPacketDescription[]

Parameters

inStartingPacket
Int64

The index of the first packet to read.

nPackets
Int32

The number of packets to read.

buffer
Byte[]

The output buffer where packets are written.

Returns

Array of packet descriptors for the packets that were read.

Applies to

ReadPacketData(Boolean, Int64, Int32, Byte[], Int32, Int32)

Reads packets of audio data from an audio file.

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

Parameters

useCache
Boolean

If the data should be cached.

inStartingPacket
Int64

The index of the first packet to read.

nPackets
Int32

The number of packets to 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 size of the output buffer (in bytes).

Returns

Array of packet descriptors for the packets that were read.

Applies to