How To Get Amplitude Of Media Player In Android ?
I want to develop an vu-meter and it reacts with sound, like a live-wallpaper Can anybody help me...
Solution 1:
I've post an answer in this other post that should help you. It gives you the amplitude of the output mix, but can even be specified for a special MediaPlayer session id =)
Solution 2:
Use MediaRecorder.getMaxAmplitude
This method returns the maximum absolute amplitude that was sampled since the last call to this method. Call this only after the setAudioSource().
http://developer.android.com/reference/android/media/MediaRecorder.html
Post a Comment for "How To Get Amplitude Of Media Player In Android ?"