Instance Property

magicCookie

An object that contains metadata required by encoders and decoders.

Declaration

var magicCookie: Data? { get set }

Discussion

Encoders produce a magic cookie, and some decoders require a magic cookie to decode properly.

See Also

Determining the Audio Format

var isStandard: Bool

A Boolean value that indicates whether the format is deinterleaved native-endian float.

var isInterleaved: Bool

A Boolean value that describes whether the samples are interleaved.

var commonFormat: AVAudioCommonFormat

The common format identifier.

var settings: [String : Any]

The format represented as a dictionary with keys from AVAudioSettings.