AudioFile.Write Method

Definition

Overloads

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

Writes a block of data to the audio file.

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

Writes data to an audo file.

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

Writes a block of data to the audio file.

public int Write (long startingByte, byte[] buffer, int offset, int count, bool useCache);
member this.Write : int64 * byte[] * int * int * bool -> int

Parameters

startingByte
Int64

The starting byte in the file where the data will be written.

buffer
Byte[]

The buffer that holds the data.

offset
Int32

The offset within the buffer where the data to be saved starts.

count
Int32

The number of bytes to write to the file.

useCache
Boolean

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.

Applies to

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

Writes data to an audo file.

public int Write (long startingByte, byte[] buffer, int offset, int count, bool useCache, out int errorCode);
member this.Write : int64 * byte[] * int * int * bool *  -> int

Parameters

startingByte
Int64
buffer
Byte[]
offset
Int32
count
Int32
useCache
Boolean
errorCode
Int32

Returns

Applies to