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

Syntax

public int WritePackets (bool useCache, long startingPacket, AudioStreamPacketDescription[] packetDescriptions, IntPtr buffer, 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 content of the buffer.
buffer
The buffer containing the audio data.
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