How to fix a corrupt audio driver Mac?

Hello,
How to fix a corrupt audio driver mac? I have to know the main reason why those audio driver was corrupt by a harmful virus in my mac operating system. I would like to ask if you guys encountered the same problem, and explain some important details to prevent or avoid it to happen again.
Waiting for your support, thank you.
