static void __wait_sound_data(PlayerThread* player, unsigned int uid)
{
+ ttsd_synthesis_control_e prev_synth_control = TTSD_SYNTHESIS_CONTROL_EXPIRED;
while (0 >= ttsd_data_get_sound_data_size(uid)) {
usleep(10000);
if (false == player->isCurrentUid(uid)) {
/* If engine is not on processing */
ttsd_synthesis_control_e synth_control = ttsd_data_get_synth_control();
+ if (prev_synth_control != synth_control)
+ SLOG(LOG_INFO, tts_tag(), "[Server INFO] prev_synth_control(%d), synth_control(%d)", prev_synth_control, synth_control);
if (TTSD_SYNTHESIS_CONTROL_DOING != synth_control) {
- SLOG(LOG_INFO, tts_tag(), "[Server INFO] synth_control(%d)", synth_control);
if (AudioStream::AUDIO_STATE_PLAY == g_audio_stream->getState()) {
g_audio_stream->unprepareAudioOut();
__unset_policy_for_playing();
}
}
+ prev_synth_control = synth_control;
}
}