If on the other hand you select Speakers as both the 'Default Device' and the ' Default Communication Device' then you will only get stereo sound through the S/PDiff Pass-through.
At which point, you will get surround sound through the S/PDiff Pass-through. If you are like me and have an Asus Xonar DS 7.1 card, then you will no doubt know that, in order to get surround sound working through the optical out, then in Playback Devices, you have to set Speakers (Asus Xonar DS Audio Device) to the 'Detault Device' and S/PDiff Pass-though Device (Asus Xonar DS Audio Device) to the 'Detault Communication Device'.
C&C 3, C&C 3 Kane's Wrath, C&C Red Alert 3 and C&C Red Alert 3 Uprising all have the same problem, and that is that they do not use the correct method of addressing the sound interface in that they only address the 'Default Device' instead of the generic Windows sound interface.