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
}
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));
}