BoomSound has spoiled me when listening to music on my HTC One M8, but when someone comes into my room, it can be a hassle trying to quickly pause or mute my music.
While you could already control your music with volume buttons, voice commands, swipe gestures, and hand movements, none have really been that practical, or free for that matter. Hovering Controls almost had it right, but the cost and bugginess of the app was off putting, so let's try an alternative.
EasyMute, from developer familyLabs, is an app that can pause or mute your music by just waving your hand over your proximity sensor—whether the screen is on or off—all without needing root permissions.
You can grab easyMute for free directly from Google Play.
There is an ongoing notification associated with easyMute to prevent it from closing, but you can disable that from your Settings app—Settings -> Apps -> easyMute and uncheck Show notifications. After disabling that, open easyMute and tap Settings.
Alternatively, you can skip the above steps for disabling the ongoing notification, and do it directly through the app by going to Settings -> Show Notifications and unchecking the option.
Here, you can choose if you want the app to start on boot, as well as switch between pausing or muting your music on wave detection. There are also options to only allow the app to work only when your phone is on a flat surface or has headphones plugged in, both of which are great for saving some battery.
I chose to leave the Proximity Sensor Sensitivity and Sweep Threshold settings at their default values because they were set at a comfortable level, but feel free to mess with those on your own. Once you have all the settings to your liking, tap Enable easyMute and you will be ready to go!
Currently, easyMute has worked with every music player I've tried, including Google Play Music, HTC's Music app, Pandora, 8tracks, and MixRadio. However, if you do run into errors, be sure you are waving directly over the proximity sensor, which is right next to the front facing camera on both the M7 and M8.