I'm trying to access AVAudioPCMBuffer.floatChannelData
using Swift but it is of type UnsafePointer<UnsafePointer<CFloat>>
(in Objective-C, @property(nonatomic, readonly) float *const *floatChannelData
) and any attempt I make to access it results in execution failed.
Sample code to set-up a quick AVAudioPCMBuffer in a Swift Playground is included in a previous question:
Getting AVAudioPCMBuffer working (AVAudioFile.mm error code -50)
Does this work?
What you can also do is in order to access
AVAudioBuffer
:You can find more about that in the Apple pre-release documentation: