I already tried the game's SFX settings to fix it, it did nothing. Also, it turns out the muting just happens after a long period of time. So, it possible that the going away part had nothing to do with it and it was just a coincidence that the game happened to mute on the time that I panned away from my character. I am pretty sure now that it is just my computer because this doesn't seem like a problem that could happen in the code and no one else has reported this bug. My computer is just a a-hole I guess.
Uhh... Not sure what that is im a loser. I don't know much about computers wow what a loser am i. Actually, just realised I kept saying computer when I really mean hand-me-down laptop, I do that out of habit. So... I'm not sure if there is anything I or you can do :(
P.S. My computer laptop is an Asus Aspire S7 with a Core i5
If you go here you can get the latest sound drivers. https://www.acer.com/ac/en/US/content/drivers
Put in your serial number of model number, look for the Audio Driver, download it and run. It should auto-install. It might help?