| 144 | } |
| 145 | |
| 146 | void speech_player::run() |
| 147 | { |
| 148 | try |
| 149 | { |
| 150 | synth_result_ptr ptr; |
| 151 | while(speech_queue.pop(ptr)) |
| 152 | { |
| 153 | ptr->output(); |
| 154 | } |
| 155 | } |
| 156 | catch(const std::exception& e) |
| 157 | { |
| 158 | logger::log(2,"Fatal error in the playback thread: ",e.what()); |
| 159 | } |
| 160 | } |
| 161 | } |
| 162 | } |