If the player character has no line-of-sight with another unit who's firing his weapon, you will not hear the gunfire. Only the bullet-cracks are still audible.
This has been especially notable during Tanoa gameplay with AI units frequently behind trees, making it very difficult to locate incoming fire.
Bug can be seen in the following video:
https://www.youtube.com/watch?v=-b2BTKme5CY