Break out of a loop in pulse_play when an error occurs.
Break out of a loop in pulse_play when an error occurs.

We should break out of the playback loop when we cannot write data
to pulseaudio.
Just return -1 to signal playback failure.

This change was imported from the Speech Dispatcher project.  Please
see commit 4b7b77c20c10b56a6759a99b8a7f2f1e86bb349a from that repository.
The original author was Hynek Hanke <hanke@brailcom.org>.

razr/opentts,razr/opentts,razr/opentts,razr/opentts