possibly the default sound card has changed from what it used to be.
Right click on the speaker icon down in the bottom rt corner then select Playback devices. There you can select what should be set for the sound card.
High Definition is usually the one built into the GPU for the HDMI feed.
Optical usually shows up as Digital S/PDIF
(One of my htpc's loses the hdmi default about twice a year)