Contents

write(from:)

Writes an audio buffer sequentially.

Declaration

func write(from buffer: AVAudioPCMBuffer) throws

Parameters

  • buffer:

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

Discussion

The buffer’s frameLength signifies how much of the buffer the method writes.

See Also

Reading and Writing the Audio Buffer