1

Well, I want to build an android app that when I playing a song with a music player. listen to the volume of the current song continuously, and show it on the screen .

I have read the manuals of MediaPlayer, MediaRecorder, AudioTrack, AudioRecorder from sdk. But it seems none of them meets my need.

Could any one give me a hint?

Edit:

I want to analyze the song to know the saturation level, not the system volume.

Alex Chan
  • 1,086
  • 3
  • 15
  • 31
  • 2
    Do you want to know the system volume level or analyze the song to know the saturation level? – Seraphim's Jun 28 '13 at 08:24
  • Sounds like something you could do with [the Visualizer API](http://developer.android.com/reference/android/media/audiofx/Visualizer.html). – Michael Jun 28 '13 at 08:34

2 Answers2

0

have you try this :

value = audioManager.getStreamVolume(audioManager.STREAM_MUSIC);

and this is the info link
http://developer.android.com/reference/android/media/AudioManager.html

Saeed-rz
  • 1,387
  • 1
  • 19
  • 36