I have just setup a machine with only HDMI connected TV. The machine still has multiple video and audio ports enabled so convincing it to use HDMI for all audio was a challenge.
While you could easily change the default sound output for the system in PCC or via Kmix, youtube, netflix (wine) vlc et all still sent their audio to the default onboard sound card.
Others have suggested installing pulseaudio however currently the install is broken; also, I found (google) numerous posts about people having no audio after installing pulseaudio.
At the end my solution was very simple: I changed alsa's default audio to HDMI. While ther might be GUI to do that I could not found any so I directly edited /usr/share/alsa/alsa.conf. The orginal file had a section like htis:
pcm.default cards.pcm.default
pcm.sysdefault cards.pcm.default
pcm.front cards.pcm.front
...
pcm.hdmi cards.pcm.hdmi
...
I commented the first line and changed the default to hdmi, like this
pcm.default cards.pcm.hdmi
#pcm.default cards.pcm.default
pcm.sysdefault cards.pcm.default
pcm.front cards.pcm.front
...
pcm.hdmi cards.pcm.hdmi
...
Restarted the machine and now everything plays through hdmi