ttsd_set_synth_control(TTSD_SYNTHESIS_CONTROL_EXPIRED);
if (0 != ttsd_player_clear(uid))
- SLOG(LOG_WARN, tts_tag(), "[Server] Fail to ttsd_player_stop()");
+ SLOG(LOG_WARN, tts_tag(), "[Server] Fail to ttsd_player_clear()");
if (0 != ttsd_data_clear_data(uid))
SLOG(LOG_WARN, tts_tag(), "[Server] Fail to ttsd_data_clear_data()");
}
ttsd_server_stop(uid);
- ttsd_player_stop(uid);
+ ttsd_player_clear(uid);
ttsd_player_destroy_instance(uid);
/* pause player */
if (0 != ttsd_server_stop(current_uid)) {
- SLOG(LOG_WARN, tts_tag(), "[Server ERROR] Fail to stop : uid (%d)", current_uid);
- }
- if (0 != ttsd_player_stop(current_uid)) {
- SLOG(LOG_WARN, tts_tag(), "[Server ERROR] Fail to player stop : uid (%d)", current_uid);
+ SLOG(LOG_WARN, tts_tag(), "[Server ERROR] Fail to stop server and player : uid (%d)", current_uid);
}
intptr_t pcurrent_uid = (intptr_t)current_uid;
if (0 != ret)
SLOG(LOG_ERROR, tts_tag(), "[Server ERROR] Fail to cancel synthesis : ret(%d)", ret);
}
-
ttsd_set_synth_control(TTSD_SYNTHESIS_CONTROL_EXPIRED);
- if (0 != ttsd_player_clear(uid))
+ /* stop player */
+ if (0 != ttsd_player_stop(uid)) {
SLOG(LOG_WARN, tts_tag(), "[Server] Fail to ttsd_player_stop()");
+ }
ttsd_data_set_client_state(uid, APP_STATE_READY);
}
/* pause player */
if (0 != ttsd_server_stop(current_uid)) {
- SLOG(LOG_WARN, tts_tag(), "[Server ERROR] Fail to stop : uid (%d)", current_uid);
- }
- if (0 != ttsd_player_stop(current_uid)) {
- SLOG(LOG_WARN, tts_tag(), "[Server ERROR] Fail to player stop : uid (%d)", current_uid);
+ SLOG(LOG_WARN, tts_tag(), "[Server ERROR] Fail to stop server and player : uid (%d)", current_uid);
}
intptr_t pcurrent_uid = (intptr_t)current_uid;