/**
- * @deprecated Deprecated since 3.0. Use wav_player_start_with_stream_info() instead.
+ * @deprecated Deprecated since 3.0. Use wav_player_start_new() instead.
* @brief Plays a WAV file.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @see sound_manager_create_stream_information()
* @see sound_manager_destroy_stream_information()
*/
+int wav_player_start_new(const char *path, sound_stream_info_h stream_info, wav_player_playback_completed_cb callback, void *user_data, int *id);
+
+/* Note : Will be removed after migration to wav_player_start_new */
int wav_player_start_with_stream_info(const char *path, sound_stream_info_h stream_info, wav_player_playback_completed_cb callback, void *user_data, int *id);
/**
_completed_cb = NULL;
_cb_data *cb_data = NULL;
- DEPRECATED_WARN_INSTEAD("wav_player_start_with_stream_info");
+ DEPRECATED_WARN_INSTEAD("wav_player_start_new");
if (path == NULL)
return _convert_wav_player_error_code(__func__, WAV_PLAYER_ERROR_INVALID_PARAMETER);
return _convert_wav_player_error_code(__func__, ret);
}
+int wav_player_start_new(const char *path, sound_stream_info_h stream_info, wav_player_playback_completed_cb callback, void *user_data, int *id)
+{
+ return _start_with_stream_info(path, stream_info, 1, callback, user_data, id);
+}
+
+/* Note : Will be removed after migration to wav_player_start_new */
int wav_player_start_with_stream_info(const char *path, sound_stream_info_h stream_info, wav_player_playback_completed_cb callback, void *user_data, int *id)
{
return _start_with_stream_info(path, stream_info, 1, callback, user_data, id);