Make PulseAudio implementation of QSoundEffect more robust.
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 25 Jul 2013 13:43:41 +0000 (15:43 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 25 Jul 2013 21:09:22 +0000 (23:09 +0200)
commitcd11c240a614acd7fe263e86baacf25ce90df699
treedbd0b18402478293a93c83ad7b7f4fe55477c65d
parent18d77b2b33b6784796aa89983bc209c5e7c8aaab
Make PulseAudio implementation of QSoundEffect more robust.

It was crashing when the PulseAudio daemon was not running or was
killed.
When the connection to the daemon fails (or is terminated), it now
tries to reconnect every 30 seconds.
Sounds created before a connection loss will be recreated after
reconnection.

Task-number: QTBUG-32487
Change-Id: Ia63707aa5c70434b834b3079a9950a9b35057b26
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
src/multimedia/audio/qsoundeffect_pulse_p.cpp
src/multimedia/audio/qsoundeffect_pulse_p.h