Contents

read(into:)

Reads an entire audio buffer.

Declaration

func read(into buffer: AVAudioPCMBuffer) throws

Parameters

  • buffer:

    The buffer from which to read the file. Its format must match the file’s processing format.

Discussion

When reading sequentially from the framePosition property, the method attempts to fill the buffer to its capacity. On return, the buffer’s length property indicates the number of sample frames it successfully reads.

See Also

Related Documentation

Reading and Writing the Audio Buffer