Usually people are asking for things to transform from Objective-C to Swift. I have to ask the other way round today.
Given the following line in Swift:
let values:[Float] = Array(UnsafeBufferPointer(start: buffer.floatChannelData?[0], count:Int(buffer.frameLength)))
Compiles successfully and I get an array of float values. Since floatChannelData on AVAudioPCMBuffer is defined as float * const I was assuming that the returning array of values is copied from the address floatChannelData[0] points to.
How would I achieve the same behaviour in Objective-C?