[ITC][sound-manager][Non-ACR][Fix not to wait complete callback when stopping wav... 11/214711/1
authorSeungbae Shin <seungbae.shin@samsung.com>
Wed, 25 Sep 2019 11:41:47 +0000 (20:41 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Wed, 25 Sep 2019 11:41:47 +0000 (20:41 +0900)
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

src/itc/sound-manager/ITs-sound-manager-device.c

index b6b0bdf5a09355c4a2f4fb2cfd0af5653be55a05..b4e1272c622e090f0735d105d788509a09318855 100755 (executable)
@@ -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));