Does your built-in Optical drive function properly?
amytom12 wrote:
And oh, I forgot to mention. When I was installing Windows 8.1, I got a MBR table error and something about EFI's and GPT. I looked on YouTube and this guy said to go to terminal on my mac side and put some codes in. I don't know if this effects the sound.
Yes, it does. If you do not use the internal Optical drive and a DVD (or CD) to install Windows on your specific model and instead use a USB (or manually choose) EFI boot, the Audio devices are not exposed correctly. This is indicated by the current BIOS Mode being UEFI. On your specific 2011 model, it should be Legacy (or BIOS).
The only method to switch to BIOS mode, is to remove the current installation using Remove Windows from your Mac - Apple Support and then use a DVD in the Optical drive to install W8.1. The 'code' you were asked to input in Terminal removed the MBR, forcing a UEFI installation, and causing the Audio to malfunction.