write(_:count:)

Write an array of binary integers to audio device.

I2S.swift:249
@discardableResult func write<Element>(_ data: [Element], count: Int? = nil) -> Result<Int, Errno> where Element : BinaryInteger

Parameters

data

The audio data stored in the specified format.

count

The count of data to be sent. If nil, it equals the count of elements in data.

Returns

The result of the data transmission.