I just changed my sound profile in the sound preferences menu to Analog Surround 5.1 Output, and now since doing that, Flash player in Firefox has no sound and when I play Minecraft there is also no sound. Sound was working before I did this. I have tried reverting back to the previous settings, but that did not work. I tried rebooting, but no successes from that either. Also, when I test my speakers through sound preferences, they work. System sounds also work.
Any help would be greatly appreciated.
I figured out what was wrong. It turns out after changing the output to Analog Surround 5.1 Output, the default device was changed to my graphics card's HDMI port. I disabled it, and now it works again.