Modify error enum for not supported stream type 18/44018/1
authorJeongho Mok <jho.mok@samsung.com>
Thu, 16 Jul 2015 07:56:08 +0000 (16:56 +0900)
committerJeongho Mok <jho.mok@samsung.com>
Thu, 16 Jul 2015 07:56:46 +0000 (16:56 +0900)
[Version] Release 0.1.3-17
[Profile] Common
[Issue Type] Modification

Change-Id: I5f871e8632b453a4ab7be6344da880658eb372e7

include/tone_player.h
packaging/capi-media-tone-player.spec

index 53d8f7c..3620440 100755 (executable)
@@ -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()
index 360f7b5..768d5e7 100755 (executable)
@@ -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