AudioToolbox.AudioFile.WritePackets Method
Writes audio packets to the file.

Syntax

public int WritePackets (bool useCache, long startingPacket, AudioStreamPacketDescription[] packetDescriptions, byte[] buffer, int offset, int count)

Parameters

useCache
Whether the data should be kept in the cache.
startingPacket
The starting packet in the packetDescriptions that should be written.
packetDescriptions
An array of packet descriptions that describe the contents of the buffer.
buffer
The buffer containing the audio data.
offset
The first packet to write from the packetDescriptions.
count
The number of bytes to write.

Returns

The number of packets written or -1 on error.

Remarks

Requirements

Namespace: AudioToolbox
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0