From: sooyeon Date: Tue, 9 Apr 2024 01:06:28 +0000 (+0900) Subject: Get client state whether it is paused or not X-Git-Tag: accepted/tizen/7.0/unified/20240409.104418~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a98d0dbd53c4cfe145822aac66a2eabc8dedc3f;p=platform%2Fcore%2Fuifw%2Ftts.git Get client state whether it is paused or not - Issue: Although playing TTS is paused, when this is resumed to play, it is not played from the stopped moment. The changed state is not checked inside the player thread. - Solution: By getting the client state again inside the player thread, the sound data which is playing is saved. Change-Id: I533ddf5f4e3fd23ab847ba3fa89757be2f36ce8d Signed-off-by: sooyeon --- diff --git a/server/ttsd_player.cpp b/server/ttsd_player.cpp index f7670c48..edd09c1a 100644 --- a/server/ttsd_player.cpp +++ b/server/ttsd_player.cpp @@ -261,6 +261,7 @@ static int __play_sound_data(PlayerThread* player, unsigned int uid, sound_data_ SLOG(LOG_INFO, tts_tag(), "[Player INFO] After audio_out_write"); } + state = ttsd_data_get_client_state(uid); if (APP_STATE_PAUSED == state) { return TTSD_ERROR_INVALID_STATE; }