Yes, as long as you have the digital optical cable connected to the television no matter what you pull up on the television, the sound should go through the digital out to the external device.
Regards,
HD Tech
Samsung 58 inch plasma tv with hdmi input from satellite box. Can I still get digital audio out from tv digital audio out (optical) jack?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic