I have an AURenderCallbackStruct
setted up with an Audio Unit. In the callbacks i am getting the audio data as ioData: UnsafeMutablePointer<AudioBufferList>
. check the code below.
func renderCallback(inRefCon: UnsafeMutablePointer<Void>, ioActionFlag: UnsafeMutablePointer<AudioUnitRenderActionFlags>, inTimeStamp: UnsafePointer<AudioTimeStamp>, inBufferNumber: UInt32, inNumberFrames: UInt32, ioData: UnsafeMutablePointer<AudioBufferList>) -> OSStatus {
// How can i get AudioBuffer from iodate here ?
return noErr
}
How can i get AudioBuffer
from ioDate
here ? Please suggest...
N.B. I am using swift 2.2