From what I can gather over the years, apparently, the stress of the defensive situation eliminates much of that hearing problem.
A lot depends on furnishings like drapery, etc.
But I do know that deliberately firing just a primer in a handgun in a small room when you know it's going to happen, results in a ringing in your ears.