what is your player 2 start button mapped to?
check your mame config...open mame, hit tab, go to input general, user interface...and look at the first option which is On Screen Display. by default it is mapped to the ` key. this is what is bringing up your volume slider.