Volume normalize issue

hi i am developing a music player but am stuck with the volume normalization.

all the volumes are the different, and i cant seem to figure out the normalize the volumes.

is there any trick or way to do it?

(like detecting the volume of the mp3 and adjust according to it)