Package: capi-media-sound-manager
Architecture: any
-Depends: ${shilbs:Depends}, ${misc:Depends} , libmm-sound-0, libmm-session-0
+Depends: ${shlibs:Depends}, ${misc:Depends}
Description: A Sound Manager library in Tizen Native API
Package: capi-media-sound-manager-dev
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, capi-media-sound-manager (= ${Source-Version}), dlog-dev, capi-base-common-dev, libmm-sound-dev, libmm-session-dev
+Depends: ${shlibs:Depends}, ${misc:Depends}, capi-media-sound-manager (= ${Source-Version}), capi-base-common-dev
Description: A Sound Manager library in Tizen Native API (DEV)
Package: capi-media-sound-manager-dbg
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
-* limitations under the License.
+* limitations under the License.
*/
SOUND_TYPE_CALL, /**< Sound type for call */
} sound_type_e;
+/**
+ * @brief Enumerations of volume key type
+ */
+typedef enum
+{
+ VOLUME_KEY_TYPE_NONE=-1, /**< Volume key type for current played sound */
+ VOLUME_KEY_TYPE_SYSTEM=0, /**< Volume key type for system sound */
+ VOLUME_KEY_TYPE_NOTIFICATION, /**< Volume key type for notifications sound*/
+ VOLUME_KEY_TYPE_ALARM, /**< Volume key type for alarm sound */
+ VOLUME_KEY_TYPE_RINGTONE, /**< Volume key type for ringtones sound */
+ VOLUME_KEY_TYPE_MEDIA, /**< Volume key type for media sound */
+ VOLUME_KEY_TYPE_CALL, /**< Volume key type for call sound */
+} volume_key_type_e;
/**
* @brief Enumerations of sound route policy
/**
* @brief Gets the A2DP activation information.
* @remarks If @a connected is @c true, @a bt_name must be released with free() by you. If @a connected is @c false, @a bt_name is set to NULL.
- * @param[out] connected The Bluetooth A2DP connection status (@c true = connected, @c false = disconnected)
+ * @param[out] connected The Bluetooth A2DP connection status (@c true = connected, @c false = disconnected)
* @param[out] bt_name The Bluetooth A2DP connected device name
* @return 0 on success, otherwise a negative error value.
* @retval #SOUND_MANAGER_ERROR_NONE Success
- * @retval #SOUND_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #SOUND_MANAGER_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #SOUND_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #SOUND_MANAGER_ERROR_INVALID_OPERATION Invalid operation
*/
int sound_manager_get_a2dp_status(bool *connected, char **bt_name);
-/**
+/**
* @brief Sets the application's sound session type
* @param[in] type The session type to set
* @return 0 on success, otherwise a negative error value.
* @retval #SOUND_MANAGER_ERROR_NONE Success
- * @retval #SOUND_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #SOUND_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
*/
int sound_manager_set_session_type(sound_session_type_e type);
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @retval #SOUND_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
* @post sound_session_notify_cb() will be invoked
- * @see sound_manager_unset_session_notify_cb()
+ * @see sound_manager_unset_session_notify_cb()
* @see sound_session_notify_cb()
*/
int sound_manager_set_session_notify_cb(sound_session_notify_cb callback, void *user_data);
*/
void sound_manager_unset_session_notify_cb(void);
+/**
+ * @brief Sets the volume key type
+ * @param[in] type The volume key type to set
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #SOUND_MANAGER_ERROR_NONE Success
+ * @retval #SOUND_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int sound_manager_set_volume_key_type(volume_key_type_e type);
/**
Name: capi-media-sound-manager
Summary: Sound Manager library
Version: 0.1.0
-Release: 1.1
+Release: 8
Group: TO_BE/FILLED_IN
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
%build
-FULLVER=%{version}
-MAJORVER=`echo ${FULLVER} | cut -d '.' -f 1`
-cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+
make %{?jobs:-j%jobs}
%files
-%{_libdir}/libcapi-media-sound-manager.so*
+%{_libdir}/libcapi-media-sound-manager.so.*
%files devel
%{_includedir}/media/sound_manager.h
%{_libdir}/pkgconfig/*.pc
+%{_libdir}/libcapi-media-sound-manager.so