From: Gilbok Lee Date: Thu, 3 Nov 2016 10:08:50 +0000 (+0900) Subject: Add radio volume APIs X-Git-Tag: accepted/tizen/common/20161115.200820~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=75cec3fb65ad203640d2aff2376c1ca5cecdb3ce;p=platform%2Fcore%2Fapi%2Fradio.git Add radio volume APIs [Version] 0.1.4 [Profile] Common(Mobile, Wearable) [Issue Type] Add features Change-Id: I4eb45eab6b44e9deed76190cb1fe7c7dcda04fee Signed-off-by: Gilbok Lee --- diff --git a/include/radio.h b/include/radio.h index 1f5a843..e2d8d11 100755 --- a/include/radio.h +++ b/include/radio.h @@ -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); /** * @} diff --git a/packaging/capi-media-radio.spec b/packaging/capi-media-radio.spec index 5f9d909..2c7097a 100644 --- a/packaging/capi-media-radio.spec +++ b/packaging/capi-media-radio.spec @@ -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