From: Seungbae Shin Date: Mon, 23 Sep 2019 12:50:24 +0000 (+0900) Subject: [ITC][wav-player][Non-ACR][Fix not to wait complete callback when stopping wav-player] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e82897c745dbc3c9cb4d455542cc4cbf0267bf6b;p=test%2Ftct%2Fnative%2Fapi.git [ITC][wav-player][Non-ACR][Fix not to wait complete callback when stopping wav-player] Following developer document indicates that callback is not invoked by calling stop API typedef void(* wav_player_playback_completed_cb)(int id, void *user_data) Called when a WAV file has finished playing. This callback is not invoked by calling wav_player_stop(). Change-Id: I286ec18812c1c4d1f86274287b45c74ac7fbd7ef --- diff --git a/src/itc/wav-player/ITs-wav-player.c b/src/itc/wav-player/ITs-wav-player.c index fb18a67ea..e34987deb 100755 --- a/src/itc/wav-player/ITs-wav-player.c +++ b/src/itc/wav-player/ITs-wav-player.c @@ -185,13 +185,7 @@ int ITc_wav_player_start_new_stop_p(void) } nRet = wav_player_stop(nId); PRINT_RESULT(WAV_PLAYER_ERROR_NONE, nRet, "wav_player_stop", WavPlayerGetError(nRet)); - RUN_POLLING_LOOP; - if ( !g_bWavPlayerPlaybackCompletedCallback ) - { - FPRINTF("[Line : %d][%s] wav_player_start_new failed, error returned = callback not invoked\\n", __LINE__, API_NAMESPACE); - sound_manager_destroy_stream_information(hStreamInfo); - return 1; - } + nRet = sound_manager_destroy_stream_information(hStreamInfo); PRINT_RESULT(SOUND_MANAGER_ERROR_NONE, nRet, "sound_manager_destroy_stream_information\\n", SoundManagerGetError(nRet)); }