android fastest way to decode mp3 to pcm data

徘徊边缘 提交于 2019-12-05 16:15:48

This is the moment when you go Native in android!

-use NDK and find a fast c/c++ library (they are like 20x faster than jlayer, for example 9min sogn in 18sec)

-here are some libs that can be usefull:

http://www.mpg123.de/

www underbit.com/products/mad/

www oracle.com/technetwork/java/javase/download-137625.html (not sure does this one supports MP3toPCM)

lame.sourceforge.net/about.php (this one has an android opensource project on github that i hope is going to be very usefull to you! https://github.com/intervigilium/liblame)

JLayer is a conversion of the original Fraunhoffer mp3 C code. Sadly the person that converted it, has scattered a wide range of needless buffer copies throughout the code because he probably didn't understand very well what was happening (not a problem, those things happen). Yet, the result is a very slow mp3 decoder. Eventually we started to remove all needless buffer copies and added exact seekability to the JLayer source. The repository and a demo on how to use it can be found at http://bpmdj.yellowcouch.org/credits.html, section JLayer1.0.1. The result is about 2.5 times faster than the original.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!