I am running windows 8.1 64. I have a gigbyte z87x-udh3 motherboard with realtec audio. I use an Onkyo HT-R390 receiver with 5.1. I run an optical cord from the receiver to my motherboard. Sound has worked since I built my computer about a year ago. I update the firmware on my Samsung EVO SSD. Sound goes in and out now. It shows sounds is plugged in and playing in playback devices. No sound comes out when I test speakers even though the green bars are lighting up in playback devices. Sounds will randomly come and go. Mostly no sound. I switched the connected from optical to an aux cord and same issue. I hooked up a small battery operated Bluetooth speaker and ran an aux cord from the back panel sound and it is NOT cutting in and out and works fine. Any thoughts where the problem might be coming from?