Smile A possible new Droid feature - mute otger apps when playing music

I just plugged in my earphones, opened play music and shuffled all music on device. Then I started playing subway surfers, and the sound of the game was annoying. I know I can shut the volume off in the game under its settings but being a smartphone, can't android detect that I am listening to music and automatically mute other games and stuff. That could save users from finding the sound settings in different games. If there could be a feature, I would love it