Add logs to check audio write 60/171260/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Tue, 20 Feb 2018 10:15:32 +0000 (19:15 +0900)
committerSooyeon Kim <sooyeon.kim@samsung.com>
Wed, 28 Feb 2018 02:44:43 +0000 (02:44 +0000)
Change-Id: I02f7fe8c4459a19cb2c0fd2c044ab1e66fb885ce
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 685082d90724d76539b010f5a1470ef24c3ca86b)

server/ttsd_player.c

index a8a2bf4..2593de3 100644 (file)
@@ -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) {