I am a new bee to iPhone development I need to implement audio output level metering using audiouint.(without using avaudioplayer because i am using cocos sound engines, I want to change the pitch of playing sound). I got some code from the Internet but don't know how that function get called or how to call it manually. I got code from here
anybody know how to call this function manually
static OSStatus AudioUnitRenderCallback (void *inRefCon,AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData)
Thank you