Condividi tramite


AudioFile.WritePackets Metodo

Definizione

Overload

WritePackets(Boolean, Int64, AudioStreamPacketDescription[], IntPtr, Int32)

Scrivere pacchetti audio nel file audio.

WritePackets(Boolean, Int64, Int32, IntPtr, Int32)

Scrive pacchetti in un file audo.

WritePackets(Boolean, Int32, AudioStreamPacketDescription[], Int64, Int32, IntPtr)

Scrive pacchetti audio nel file.

WritePackets(Boolean, Int64, AudioStreamPacketDescription[], Byte[], Int32, Int32)

Scrive pacchetti audio nel file.

WritePackets(Boolean, Int64, AudioStreamPacketDescription[], IntPtr, Int32, Int32)

Scrive pacchetti in un file audo.

WritePackets(Boolean, Int64, AudioStreamPacketDescription[], Byte[], Int32, Int32, Int32)

Scrive pacchetti in un file audo.

WritePackets(Boolean, Int64, AudioStreamPacketDescription[], IntPtr, Int32)

Scrivere pacchetti audio nel file audio.

public int WritePackets (bool useCache, long startingPacket, AudioToolbox.AudioStreamPacketDescription[] packetDescriptions, IntPtr buffer, int byteCount);
member this.WritePackets : bool * int64 * AudioToolbox.AudioStreamPacketDescription[] * nativeint * int -> int

Parametri

useCache
Boolean

Indica se i dati devono essere mantenuti nella cache.

startingPacket
Int64

Pacchetto iniziale nei pacchettiDescriptions che devono essere scritti.

packetDescriptions
AudioStreamPacketDescription[]

Matrice di descrizioni dei pacchetti che descrivono il contenuto del buffer.

buffer
IntPtr

nativeint

Buffer contenente i dati audio.

byteCount
Int32

Restituisce

Numero di pacchetti scritti o -1 in caso di errore.

Si applica a

WritePackets(Boolean, Int64, Int32, IntPtr, Int32)

Scrive pacchetti in un file audo.

public int WritePackets (bool useCache, long startingPacket, int numPackets, IntPtr buffer, int byteCount);
member this.WritePackets : bool * int64 * int * nativeint * int -> int

Parametri

useCache
Boolean
startingPacket
Int64

Pacchetto iniziale nei pacchettiDescriptions che devono essere scritti.

numPackets
Int32
buffer
IntPtr

nativeint

byteCount
Int32

Restituisce

Si applica a

WritePackets(Boolean, Int32, AudioStreamPacketDescription[], Int64, Int32, IntPtr)

Scrive pacchetti audio nel file.

public AudioToolbox.AudioFileError WritePackets (bool useCache, int numBytes, AudioToolbox.AudioStreamPacketDescription[] packetDescriptions, long startingPacket, ref int numPackets, IntPtr buffer);
member this.WritePackets : bool * int * AudioToolbox.AudioStreamPacketDescription[] * int64 *  * nativeint -> AudioToolbox.AudioFileError

Parametri

useCache
Boolean

Indica se i dati devono essere mantenuti nella cache.

numBytes
Int32

Numero di byte da scrivere.

packetDescriptions
AudioStreamPacketDescription[]

Matrice di descrizioni dei pacchetti che descrivono il contenuto del buffer.

startingPacket
Int64

Pacchetto iniziale nei pacchettiDescriptions che devono essere scritti.

numPackets
Int32

Numero di pacchetti da scrivere sostituiti con il numero di pacchetti effettivamente scritti.

buffer
IntPtr

nativeint

Buffer contenente i dati audio.

Restituisce

Codice di errore di stato.

Si applica a

WritePackets(Boolean, Int64, AudioStreamPacketDescription[], Byte[], Int32, Int32)

Scrive pacchetti audio nel file.

public int WritePackets (bool useCache, long startingPacket, AudioToolbox.AudioStreamPacketDescription[] packetDescriptions, byte[] buffer, int offset, int byteCount);
member this.WritePackets : bool * int64 * AudioToolbox.AudioStreamPacketDescription[] * byte[] * int * int -> int

Parametri

useCache
Boolean

Indica se i dati devono essere mantenuti nella cache.

startingPacket
Int64

Pacchetto iniziale nei pacchettiDescriptions che devono essere scritti.

packetDescriptions
AudioStreamPacketDescription[]

Matrice di descrizioni dei pacchetti che descrivono il contenuto del buffer.

buffer
Byte[]

Buffer contenente i dati audio.

offset
Int32

Primo pacchetto da scrivere dai pacchettiDescriptions.

byteCount
Int32

Restituisce

Numero di pacchetti scritti o -1 in caso di errore.

Si applica a

WritePackets(Boolean, Int64, AudioStreamPacketDescription[], IntPtr, Int32, Int32)

Scrive pacchetti in un file audo.

public int WritePackets (bool useCache, long startingPacket, AudioToolbox.AudioStreamPacketDescription[] packetDescriptions, IntPtr buffer, int byteCount, out int errorCode);
member this.WritePackets : bool * int64 * AudioToolbox.AudioStreamPacketDescription[] * nativeint * int *  -> int

Parametri

useCache
Boolean

Indica se i dati devono essere mantenuti nella cache.

startingPacket
Int64

Pacchetto iniziale nei pacchettiDescriptions che devono essere scritti.

packetDescriptions
AudioStreamPacketDescription[]

Matrice di descrizioni dei pacchetti che descrivono il contenuto del buffer.

buffer
IntPtr

nativeint

byteCount
Int32
errorCode
Int32

Restituisce

Si applica a

WritePackets(Boolean, Int64, AudioStreamPacketDescription[], Byte[], Int32, Int32, Int32)

Scrive pacchetti in un file audo.

public int WritePackets (bool useCache, long startingPacket, AudioToolbox.AudioStreamPacketDescription[] packetDescriptions, byte[] buffer, int offset, int byteCount, out int errorCode);
member this.WritePackets : bool * int64 * AudioToolbox.AudioStreamPacketDescription[] * byte[] * int * int *  -> int

Parametri

useCache
Boolean

Indica se i dati devono essere mantenuti nella cache.

startingPacket
Int64

Pacchetto iniziale nei pacchettiDescriptions che devono essere scritti.

packetDescriptions
AudioStreamPacketDescription[]

Matrice di descrizioni dei pacchetti che descrivono il contenuto del buffer.

buffer
Byte[]
offset
Int32
byteCount
Int32
errorCode
Int32

Restituisce

Si applica a