From: Seungbae Shin Date: Wed, 25 Sep 2019 11:41:47 +0000 (+0900) Subject: [ITC][sound-manager][Non-ACR][Fix not to wait complete callback when stopping wav... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd1ff78d7e68c06ad0aa9dbcee53b318d9ca63e4;p=test%2Ftct%2Fnative%2Fapi.git [ITC][sound-manager][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: Ie40b350b1d1f2439414588bdcf0aa87ad9ae3fc9 --- diff --git a/src/itc/sound-manager/ITs-sound-manager-device.c b/src/itc/sound-manager/ITs-sound-manager-device.c index b6b0bdf5a..b4e1272c6 100755 --- a/src/itc/sound-manager/ITs-sound-manager-device.c +++ b/src/itc/sound-manager/ITs-sound-manager-device.c @@ -1068,15 +1068,6 @@ int ITc_sound_manager_add_remove_device_running_changed_cb_p(void) nRet = sound_manager_free_device_list(hdeviceList); PRINT_RESULT_NORETURN(SOUND_MANAGER_ERROR_NONE, nRet, "sound_manager_free_device_list", SoundManagerGetError(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_remove_device_running_changed_cb(nGetID); - sound_manager_destroy_stream_information(hStreamInfo); - return 1; - } - //Target API nRet = sound_manager_remove_device_running_changed_cb(nGetID); PRINT_RESULT_CLEANUP(SOUND_MANAGER_ERROR_NONE, nRet, "sound_manager_remove_device_running_changed_cb", SoundManagerGetError(nRet),sound_manager_destroy_stream_information(hStreamInfo));