Record in game Audio on android

Hi,

Im developing an applicaion for android related to sounds.
But I have to record in game audio. Is there a way to do this?
I dont need microphone functions. I need the game in audio (the output itself)

I am not 100% sure if this is the best way, but You would have to basically create your own sound driver.
Send your audio to that and record it before forwarding it to the sound card.
This way you will not record audio from other applications that may be running.

Not a simple task.

Take a look at Audacity, free software that records internal sound by intercepting the signal to the sound card.
Source code may be available as it is free to use.

I have never used but looking at the script reference, there is a method; AudioListener.GetOutputData.

Also I again assume that you can assign this data to AudioClip by SetData.

And then you can play the AudioClip and see if it works.