Sometimes OSX audio gets its knickers in a twist and needs to be reset. One example of this is it you have a set of USB speakers plugged in and suddenly they are not picked up by the OS when previously they have been working fine. You can usually fix this issue with the following command from the terminal:
sudo killall coreaudiod
Of course a reboot would also work but this option just saves the hassle.