Add radio volume APIs 74/95474/2
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 3 Nov 2016 10:08:50 +0000 (19:08 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 4 Nov 2016 01:40:07 +0000 (10:40 +0900)
[Version] 0.1.4
[Profile] Common(Mobile, Wearable)
[Issue Type] Add features

Change-Id: I4eb45eab6b44e9deed76190cb1fe7c7dcda04fee
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
include/radio.h
packaging/capi-media-radio.spec

index 1f5a843..e2d8d11 100755 (executable)
@@ -462,6 +462,35 @@ int radio_get_frequency_range(radio_h radio, int *min_freq, int *max_freq);
  */
 int radio_get_channel_spacing(radio_h radio, int *channel_spacing);
 
+/**
+ * @brief Sets the radio volume.
+ * @since_tizen 3.0
+ * @param[in]   radio The handle to radio
+ * @param[in]   volume The volume to set [0.0 ~ 1.0](1.0 = 100%)
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #RADIO_ERROR_NONE Successful
+ * @retval #RADIO_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #RADIO_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
+ * @see radio_get_volume()
+ */
+int radio_set_volume(radio_h radio, float volume);
+
+/**
+ * @brief Gets the current volume of the radio.
+ * @since_tizen 3.0
+ * @param[in]   radio The handle to radio
+ * @param[out]  volume The current volume [0.0 ~ 1.0](1.0 = 100%)
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #RADIO_ERROR_NONE Successful
+ * @retval #RADIO_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #RADIO_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
+ * @see radio_set_volume()
+ */
+int radio_get_volume(radio_h radio, float *volume);
 
 /**
  * @}
index 5f9d909..2c7097a 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-radio
 Summary:    A Radio library in Tizen Native API
-Version:    0.1.3
+Version:    0.1.4
 Release:    1
 Group:      API/C API
 License:    Apache-2.0