I'm trying to build an app that uses a digital filter to process audio playing from other (stock music player and spotify etc) apps.
So far I've been able to create the filter for audio input from the mic in OpenSL ES. The filtered audio is then sent to the hardware output. The app was based on this toutorial http://audioprograming.wordpress.com/2012/03/03/android-audio-streaming-with-opensl-es-and-the-ndk/
How do I get a similar input buffer from other apps so that I can process it before its sent to the hardware output?
Its not a requirement to use OpenSL ES or other native code. To clarify; the app should apply the custom filter effect in a similar way as android.media.audiofx.AudioEffect before it was deprecated could be attached to the global audio output mix (audio session 0).