How to get sound data from FMOD in Android

I am developing a android game in C++ and the sound engine is using FMOD, I want to record sound of game, but I can only get a handle from FMOD by the function FMOD_RESULT System::getOutputHandle(void **handle) , so how do I get all the sound data output from my game?

i can use the handle to get the sound data by call IOS function AudioUnitAddRenderNotify( handle, handleRenderNotifyCallback, (__bridge void*)self ); , but what can i do the same thing in Android?

There is a recording_playback.cpp example provided with the installation of the FMOD Studio API. The iOS example should give you some insight into how this works in recording the output.