How to get sound data from FMOD in Android

  android, android-ndk, c++, fmod

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 the sound data?

Source: Windows Questions C++