Contents

audioStreamPacketDescriptions()

Creates an array of audio stream packet descriptions for the variable bytes per packet or variable frames per packet audio data in a sample buffer.

Declaration

func audioStreamPacketDescriptions() throws -> [AudioStreamPacketDescription]

Return Value

An array of audio stream packet descriptions.

Discussion

Constant bit rate, constant frames-per-packet audio yields an empty array.

This API is specific to audio format sample buffers, and throws an invalidMediaTypeForOperation error if called on a nonaudio sample buffer.

See Also

Modifying Sample Buffers