Audio Crossfading in Android

I am developing a media player for my learning purpose, and I want to have cross fading in a media player application. But I don’t know where to start. I tried searching on inernet but no luck. I use the Android MediaPlayer class for all operations related to the media player. Does anyone know a workaround to achieve the same.

thanks for your support

+4
source share
2 answers

Try using AudioTrack instead of MediaPlayer. I usually suggest the following plan:

  • Check out some sources for an application using AudioTrack. A good player can be found here.

This is an aac audio player that uses JNI to decode aac-audio.

  • Find the MP3 decoding library. The library should be Java (see this , or maybe there are other libraries (I did not use such java libraries)) or the C / C ++ library (in this case you will also use it through JNI).
  • When you get a simple working MP3 player, add manual crossfading (this should be easy if you know the basics of digital audio).
+1
source

All Articles