To call GetState() here was on purpose. To be sure that the current state of the app really reflects the state of pulseaudio. For example in the unlikely case, that the muting command did not work.