From 6c27625aed5b2d189e78f8f069cd7a72c990aa1f Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Tue, 20 Feb 2018 19:15:32 +0900 Subject: [PATCH] Add logs to check audio write Change-Id: I02f7fe8c4459a19cb2c0fd2c044ab1e66fb885ce Signed-off-by: sooyeon.kim (cherry picked from commit 685082d90724d76539b010f5a1470ef24c3ca86b) --- server/ttsd_player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/ttsd_player.c b/server/ttsd_player.c index a8a2bf4..2593de3 100644 --- a/server/ttsd_player.c +++ b/server/ttsd_player.c @@ -582,11 +582,15 @@ static void __play_thread(void *data, Ecore_Thread *thread) } char* temp_data = sound_data->data; + SLOG(LOG_INFO, tts_tag(), "[Player INFO] Before audio_out_write. temp_data(%p), idx(%d), data_idx(%d), uid(%d), utt_id(%d), len(%d)", + temp_data, idx, &temp_data[idx], player->uid, sound_data->utt_id, len); ret = audio_out_write(g_audio_h, &temp_data[idx], len); if (0 > ret) { SLOG(LOG_WARN, tts_tag(), "[Player WARNING] Fail to audio write - %d", ret); } else { idx += len; + SLOG(LOG_INFO, tts_tag(), "[Player INFO] After audio_out_write. temp_data(%p), idx(%d), data_idx(%d), uid(%d), utt_id(%d), len(%d)", + temp_data, idx, &temp_data[idx], player->uid, sound_data->utt_id, len); } if (NULL == g_playing_info && APP_STATE_PAUSED != player->state) { -- 2.7.4