I remember back in 1980 or '81 something called the Sonitrol Earplug. It would allow normal conversation and at a sharp sound such as a gun's report, the little valves would close and cut off the sound. I never tried them so I don't know how well they work. Got some good feedback from some folks who did use them though.