fixed pulseaudio sink mute and more refactoring