Notification sounds not playing after upgrading to Yosemite
I've had this problem happen a few times, and it can be fixed by killing the Core Audio daemon (it'll get restarted automatically):

sudo killall coreaudiod