If the OS can detect if headphones are plugged in or not, it would be great to maintain 2 different volume states, one for headphones and the other for speaker.
I often want the speaker volume very low (level 1 or 0) to not disturb others. But when my headphones are in, I want to hear the game!