Need some help.Does it matter if I use an optical vs. an HDMI on a 2.1 soundbar w/ wireless sub?

I didn’t want to dedicate a HDMI to the soundbar but it the sound is significantly better I’ll just get a HDMI splitter
If I hook it up HDMI, will the soundbar work across all outputs or just the one device that’s passes through the 2nd HDMI on the soundbar.

That shyt sound confusing as fukk

Appreciate the advice in advance.I don’t know if this helps but here’s the sound-bar:
But yea sound bars aren’t for audiophiles they are for people that just want their tv louder and a little base while saving space

Don't do that to yourself, breh. Even the cheapest of 5.1 systems is vastly superior to a soundbar.