Contents

analyzeAudioSample(_:)

Analyzes the provided audio sample buffer for its contribution to the spatial audio timed metadata value.

Declaration

func analyzeAudioSample(_ sbuf: CMSampleBuffer) -> OSStatus

Parameters

  • sbuf:

    A sample buffer containing spatial audio.

Return Value

noErr if the sample is successfully analyzed, otherwise a non-zero error code.

Discussion

You must call this method with each and every spatial audio buffer you provide to AVAssetWriter, so it can be analyzed for the generation of a proper spatial audio timed metadata value.

See Also

Analyzing audio samples