Automute is a plugin by PSP Developer ClassG that allows to eliminate the sound when the headphones are detached.
It can also select any button that can enable or disable the plugin.
Changelog:
Allowed to run older versions of POPS via PopsLoader, able to mute properly.
Made an attempt to reduce the file size of the plug-in.
Download
Source