No sound MacBook Pro 2016 13" touchbar macOS Sierra 10.12.2

My new macbook laptop keeps losing the sound, anyone knows anything I can do besides restarting or logging out?

Last time It fixed itself automagically, it's a macbook pro 2016, 13" with touchbar

I can even hear a tick when I switch from hdmi to the headphones but it wont output any sound from youtube or VLC or anything else.

I can only hear Siri.

I can't afford to be restarting my computer manually every time this happens.

On linux I can restart the service and fix it but I don't know how to do it in mac.

OS Version: macOs Sierra 10.12.2


Solution 1:

Fixed it with sudo killall coreaudiod

Solution 2:

If your Control Strip stops working after sudo killall coreaudiod try sudo killall ControlStrip afterwards.