addPCMListener(callback:)

Event fired for new inbound audio frame

func addPCMListener(callback: @escaping @Sendable (Array<Int16>, Int32, Int32) -> Void)

Parameters

callback

takes three arguments, the Signed 16-bit PCM data, the clock rate, and the number of channels