AudioQueue.MagicCookie Property

Definition

Audio metadata required by certain formats.

public byte[] MagicCookie { get; set; }
member this.MagicCookie : byte[] with get, set

Property Value

Byte[]

Opaque byte array with a codec-specific token.

Remarks

Certain file format produce a MagicCookie that contains audio metadata. When playing back or recording, you need to copy this magic cookie from the AudioQueue to the AudioFileStream by copying this property to the MagicCookie property.

Applies to