Let's say it's a new PC. Back to the maker and get them to fix it.
Not a new PC? Tell a lot more.
When im playing a game like cs go, after a while of playing my computer will randomly freeze on a frame and a buzzing sound will come out my speakers