no in game sound

Hello my name is Bradley I was wondering if anyone could give me some assistance. I have recently bought a new pc which is pre-built but I seem to have no sound. My speakers are plugged in, turned on and the volume is turned up. I've tried troubleshooting it but no problems were found, I've gone into Device Manager - sound, video and game controllers (AMD High Definition Audio Device, High Definition Audio Device) checked for updates, uninstalled the drivers and rebooted the pc. It works for windows media player when I play MP3 formats and it works for youtube but when I'm in-game I hear a cracking sound from the speakers and then there is no sound. I've also set the speakers to the default device in playback devices. I have also checked for windows updates (I'm currently using windows 10). I'm not too sure what else to do