Contents

copyAudio(atStart:count:)

Returns decoded audio samples starting from the specified temporal position.

Declaration

func copyAudio(atStart start: Int64, count: UnsafeMutablePointer<Int64>!) -> Data!

Parameters

  • start:

    The temporal position of the audio sample.

  • count:

    On input, the number of audio samples to return; on output, the actual number of samples returned.

Return Value

A data buffer with decoded audio samples at the sample rate and channel layout specified in the encoder settings.

Discussion

If the decoder does not have enough samples to return as specified in the count parameter, it updates the count parameter with the actual number of samples in the returned audio data buffer.

See Also

Getting Decoded Frames and Samples