How should I connect my SoundBar

Hello there,

I’m going to get a soundbar and I will use the Optical Audio Cable.
How should I connect it?

PC -> SoundBar
OR
PC -> HDMI to TV (sound goes through HDMI) -> TV to Soundbar (with Optical Audio Cable)

Thanks Smile

P.S My TV is an old 42 Inch Samsung Plasma and the SoundBar which I’ve been thinking is
Samsung HW-K561.

Please let me know if that SoundBar is bad and suggest another one.

Thanks!

HomeDope