Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create equalizer for android

I want to create simple equalizer for android. How can I do it?

Try to find some methods in MediaPlayer class. But all my attempts failed.

like image 205
MistaGreen Avatar asked Aug 05 '10 22:08

MistaGreen


People also ask

Does Android have built in EQ?

On-device equalizersMany Android OEMs have EQs in the sound section of the settings. Some devices do it better than others, but about half of them let you adjust device-wide audio through an EQ. Usually it's something close to a 10-band EQ along with some added stuff like Dolby Atmos or EQ presets.


2 Answers

Android has built-in qualizer engine, though it isn't located in MediaPlayer class, becouse it's a class itself located in android.media.audioFx package.

http://developer.android.com/reference/android/media/audiofx/Equalizer.html

like image 194
dren311 Avatar answered Oct 01 '22 17:10

dren311


Simple answer... you can't do it with the framework or with Java (because there is no JMF support in Android). You have to use the NDK and JNI to compile a native library with equalizer support. If you know C/C++ there are plenty of libraries around that will provide this functionality but if you don't know C/C++ or have the means to pay someone that does I would recommend you move on to something else within your means... There are even some working examples for Android, if you look around, that use libmpg123... but libmpg123 only provides an equalizer interface for mp3's. I found that it's pretty buggy in general and compromised the stability of the app in such a way that it would lock up android and I would have to pull the battery to reboot the phone. In addition, there was alot of audio clipping even with the equalizer flatlined. That is my experience...

like image 39
androidworkz Avatar answered Oct 01 '22 18:10

androidworkz