AudioToolbox.AudioFile.Write Method
Writes a block of data to the audio file.

Syntax

public int Write (long startingByte, byte[] buffer, int offset, int count, bool useCache)

Parameters

startingByte
The starting byte in the file where the data will be written.
buffer
The buffer that holds the data.
offset
The offset within the buffer where the data to be saved starts.
count
The number of bytes to write to the file.
useCache
Whether the data should be cached.

Returns

The number of bytes written to the stream, or -1 on error.

Remarks

This API merely writes bytes to the file without any encoding. Use WritePackets to write with encoding.

Requirements

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