olav-st/screencloud — pull request #87 by excieve (2014-07-04 18:25:40+00:00)
Title: Stop audio output immediately after playback is finished

Audio device is left in an open state even after the playback is finished. This leaves at least pulseaudio on Linux not able to use it for other applications until screencloud is killed. Following messages appear in the syslog when another application tries to play something:
```
лип 04 18:47:47 excieve pulseaudio[2179]: Error opening PCM device front:0: Device or resource busy
лип 04 18:47:47 excieve pulseaudio[2179]: Failed to create sink input: sink is suspended.
```
Stopping the audio output on `IdleState` as [shown](http://qt-project.org/doc/qt-4.8/qaudiooutput.html#details) in the Qt docs fixes this for me.

P.S.
Sorry if this isn't right in some way — I'm not experienced with Qt.