Why Is My Iphone Not Recording Sound

Why Is My Iphone Not Recording Sound / I use this code to record the iphone output audio by using audio unit then saving the output in output.caf but the output.caf file is empty any body have idea about what shall i do you just need to define an valid audiobuffer and pass it to audiounitrender, this is my working rendercallback