I tried to display audio stream for visualization, and I found MediaPlayer.snoop(short[], int)
to get audio stream playing now on Mediaplayer
So I did the code:
Class c = MediaPlayer.class;
Method m = c.getDeclaredMethod("snoop", outData.getClass(), Integer.TYPE );
But there is an exception error: No such function in Mediaplayer
Couldn't I use the code above or is it impossible to get audio stream?
Help me!! Thank you.