Instance Method

write(from:)

Write a buffer.

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.

outError

Returns, by-reference, a description of the error, if an error occurs.

Return Value

true, if the write was successful.

Discussion

Writes sequentially. The buffer’s frameLength signifies how much of the buffer is to be written.

See Also

Reading and Writing the Audio Buffer