Share via


AudioFile.SetUserData Method

Definition

Overloads

Name Description
SetUserData(AudioFileChunkType, Int32, Byte[])

Set the data of a chunk in a file.

SetUserData(Int32, Int32, Int32, IntPtr)
Obsolete.

Sets the value at the specified index into the specified userDataId to userData, which must have the size that is specified in userDataSize.

SetUserData(AudioFileChunkType, Int32, Byte[])

Set the data of a chunk in a file.

public AudioToolbox.AudioFileError SetUserData(AudioToolbox.AudioFileChunkType chunkType, int index, byte[] data);
member this.SetUserData : AudioToolbox.AudioFileChunkType * int * byte[] -> AudioToolbox.AudioFileError

Parameters

chunkType
AudioFileChunkType

The fourcc of the chunk.

index
Int32

The index of the chunk if there are more than one chunks.

data
Byte[]

An array of bytes to set.

Returns

Returns Success on success, otherwise an AudioFileError error code.

Applies to

SetUserData(Int32, Int32, Int32, IntPtr)

Caution

Use 'SetUserData (AudioFileChunkType, int, byte[])' instead.

Sets the value at the specified index into the specified userDataId to userData, which must have the size that is specified in userDataSize.

[System.Obsolete("Use 'SetUserData (AudioFileChunkType, int, byte[])' instead.")]
public int SetUserData(int userDataId, int index, int userDataSize, IntPtr userData);
[<System.Obsolete("Use 'SetUserData (AudioFileChunkType, int, byte[])' instead.")>]
member this.SetUserData : int * int * int * nativeint -> int

Parameters

userDataId
Int32

The fourcc of the chunk.

index
Int32

The index of the chunk if there are more than one chunks.

userDataSize
Int32

The number of bytes to write.

userData
IntPtr

nativeint

An array of bytes where the data will be copied.

Returns

Returns Success on success, otherwise an AudioFileError error code.

Attributes

Applies to