Fix #522 part  1

Don't play sounds while hidden.