From 9a95425e5aba9dd8b2756872d7fa052e5247dbb9 Mon Sep 17 00:00:00 2001 From: Jeongho Mok Date: Thu, 16 Jul 2015 16:56:08 +0900 Subject: [PATCH] Modify error enum for not supported stream type [Version] Release 0.1.3-17 [Profile] Common [Issue Type] Modification Change-Id: I5f871e8632b453a4ab7be6344da880658eb372e7 --- include/tone_player.h | 12 +++++++----- packaging/capi-media-tone-player.spec | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/tone_player.h b/include/tone_player.h index 53d8f7c..3620440 100755 --- a/include/tone_player.h +++ b/include/tone_player.h @@ -46,10 +46,10 @@ extern "C" */ typedef enum { - TONE_PLAYER_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ - TONE_PLAYER_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ - TONE_PLAYER_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Invalid operation */ - TONE_PLAYER_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported (Since 3.0) */ + TONE_PLAYER_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ + TONE_PLAYER_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ + TONE_PLAYER_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Invalid operation */ + TONE_PLAYER_ERROR_NOT_SUPPORTED_TYPE = TIZEN_ERROR_TONE_PLAYER | 0x01 /**< Not supported (Since 3.0) */ } tone_player_error_e; /** @@ -213,6 +213,8 @@ int tone_player_start(tone_type_e tone, sound_type_e type, int duration_ms, int * * @since_tizen 3.0 * + * @remarks Voice Recognition stream type is not supported in this API. + * * @param[in] tone The tone type to play * @param[in] stream_info The sound stream information handle * @param[in] duration_ms The tone duration in milliseconds \n @@ -224,7 +226,7 @@ int tone_player_start(tone_type_e tone, sound_type_e type, int duration_ms, int * @retval #TONE_PLAYER_ERROR_NONE Successful * @retval #TONE_PLAYER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #TONE_PLAYER_ERROR_INVALID_OPERATION Invalid operation - * @retval #TONE_PLAYER_ERROR_NOT_SUPPORTED Not supported + * @retval #TONE_PLAYER_ERROR_NOT_SUPPORTED_TYPE Not supported stream type * * @see tone_player_stop() * @see sound_manager_create_stream_information() diff --git a/packaging/capi-media-tone-player.spec b/packaging/capi-media-tone-player.spec index 360f7b5..768d5e7 100755 --- a/packaging/capi-media-tone-player.spec +++ b/packaging/capi-media-tone-player.spec @@ -1,7 +1,7 @@ Name: capi-media-tone-player Summary: A tone player library in Tizen C API Version: 0.1.3 -Release: 16 +Release: 17 Group: Multimedia/API License: Apache-2.0 Source0: %{name}-%{version}.tar.gz -- 2.7.4