/**
* @brief Enumeration for sound manager's error codes.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum
{
/**
* @brief Enumeration for sound type.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum
{
/**
* @deprecated Deprecated since 2.4. Use sound_manager_create_stream_information() and sound_stream_type_e instead.
* @brief Enumeration for session type.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_SESSION_TYPE_MEDIA = 0, /**< Media type */
/**
* @deprecated Deprecated since 2.4. Use sound_manager_acquire_focus() or not instead.
* @brief Enumeration for session option for starting.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_SESSION_OPTION_MIX_WITH_OTHERS_WHEN_START = 0, /**< This session will be mixed with others when starting (default) */
/**
* @deprecated Deprecated since 2.4. In sound_stream_focus_state_changed_cb, you can choose to stop playing or not.
* @brief Enumeration for session option during play.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_SESSION_OPTION_INTERRUPTIBLE_DURING_PLAY = 0, /**< This session will be interrupted by other sessions during play (default) */
/**
* @deprecated Deprecated since 2.4. In sound_stream_focus_state_changed_cb, you can choose to resume playing or not.
* @brief Enumeration for session option for resumption.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_SESSION_OPTION_RESUMPTION_BY_SYSTEM = 0, /**< This session will be resumed according to system policy (default) */
/**
* @deprecated Deprecated since 2.4. Use sound_manager_apply_stream_routing() instead.
* @brief Enumeration for voip session mode.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_SESSION_VOIP_MODE_RINGTONE = 0, /**< voip mode for ringtone */
/**
* @deprecated Deprecated since 2.4. Use sound_stream_focus_state_changed_cb instead.
* @brief Enumeration for sound session interrupted type.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_SESSION_INTERRUPTED_COMPLETED = 0, /**< Interrupt completed*/
/**
* @deprecated Deprecated since 2.4. Use sound_stream_focus_state_changed_cb instead.
* @brief Called when the playing sound session is interrupted.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] code The interrupted code
* @param[in] user_data The user data passed from the callback registration function
* @pre You should register this callback using sound_manager_set_session_interrupted_cb().
/**
* @brief Sound device handle.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef void* sound_device_h;
/**
* @brief Sound device list handle.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef void* sound_device_list_h;
/**
* @brief Enumeration for sound device type.
-* @since_tizen 2.3
+* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_DEVICE_BUILTIN_SPEAKER, /**< Built-in speaker */
/**
* @brief Enumeration for sound device direction.
-* @since_tizen 2.3
+* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_DEVICE_IO_DIRECTION_IN, /**< Input device */
/**
* @brief Enumeration for sound device state.
-* @since_tizen 2.3
+* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_DEVICE_STATE_DEACTIVATED, /**< Deactivated state */
/**
* @brief Enumeration for sound device mask.
-* @since_tizen 2.3
+* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_DEVICE_IO_DIRECTION_IN_MASK = 0x0001, /**< Mask for input devices */
/**
* @brief Enumeration for changed information of sound device.
-* @since_tizen 2.3
+* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
SOUND_DEVICE_CAHNGED_INFO_STATE, /**< State of the device was changed */
/**
* @brief Called when the state of connection of a sound device was changed.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] sound_device_h The sound_device
* @param[in] is_connected The state of device connection: (@c true = connected, @c false = disconnected)
* @param[in] user_data The user data passed from the callback registration function
/**
* @brief Called when the information of a sound device was changed.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] sound_device_h The sound_device
* @param[in] changed_info The entry of sound device information
* @param[in] user_data The user data passed from the callback registration function
/**
* @brief Called when the system volume has changed.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] type The sound type of the changed volume
* @param[in] volume The new volume value
* @param[in] user_data The user data passed from the callback registration function
/**
* @brief Gets the maximum volume level supported for a particular sound type.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] type The sound type
* @param[out] max The maximum volume level
* @return @c 0 on success,
/**
* @brief Sets the volume level specified for a particular sound type.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/volume.set
* @param[in] type The sound type
/**
* @brief Gets the volume level specified for a particular sound type.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] type The sound type
* @param[out] volume The current volume level
* @return @c 0 on success,
/**
* @brief Sets the type of the sound being currently played.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] type The sound type to set
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Gets the type of the sound being currently played.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[out] type The current sound type
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Unsets the type of the sound being currently played.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Registers a callback function to be invoked when the volume level is changed.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] callback Callback function to indicate change in volume
* @param[in] user_data The user data to be passed to the callback function
* @return @c 0 on success,
/**
* @brief Unregisters the volume change callback.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @return 0 on success, otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @retval #SOUND_MANAGER_ERROR_INTERNAL Internal error inside the sound system
/**
* @deprecated Deprecated since 2.4. Use sound_manager_create_stream_information() instead.
* @brief Sets the application's sound session type.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] type The session type to set
* @return @c 0 on success,
* otherwise a negative error value
/**
* @deprecated Deprecated since 2.4
* @brief Gets the application's sound session type.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] type The session type
* @return @c 0 on success,
* otherwise a negative error value
/**
* @deprecated Deprecated since 2.4. Use sound_manager_create_stream_information() instead.
* @brief Sets the media sound session option.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] s_option The session option for starting
* @param[in] d_option The session option for during play
* @return @c 0 on success,
/**
* @deprecated Deprecated since 2.4. Use sound_manager_create_stream_information() instead.
* @brief Gets the media sound session option.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[out] s_option The session option for starting
* @param[out] d_option The session option for during play
* @return @c 0 on success,
/**
* @deprecated Deprecated since 2.4. Use sound_manager_create_stream_information() instead.
* @brief Sets the media sound session resumption option.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] option The session resumption option
* @return @c 0 on success,
* otherwise a negative error value
/**
* @deprecated Deprecated since 2.4. Use sound_manager_create_stream_information() instead.
* @brief Gets the media sound session resumption option.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[out] option The session resumption option
* @return @c 0 on success,
* otherwise a negative error value
/**
* @deprecated Deprecated since 2.4. Use sound_manager_create_stream_information() instead.
* @brief Sets the mode of the voip sound session.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] mode The voip session mode
* @return @c 0 on success,
* otherwise a negative error value
/**
* @deprecated Deprecated since 2.4. Use sound_manager_create_stream_information() instead.
* @brief Gets the mode of the voip sound session.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[out] mode The voip session mode
* @return @c 0 on success,
* otherwise a negative error value
/**
* @deprecated Deprecated since 2.4. Use sound_manager_create_stream_information() instead.
* @brief Registers a callback function to be invoked when the sound session being played was interrupted.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] callback The interrupted callback function
* @param[in] user_data The user data to be passed to the callback function
* @return @c 0 on success,
/**
* @deprecated Deprecated since 2.4
* @brief Unregisters the callback function which is called when the sound session being played is interrupted.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @return 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Gets the list consisting of connected devices.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device_mask The mask value
* @param[out] device_list The list of connected devices
*
/**
* @brief Gets the next item of the device list.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device_list The list of connected devices
* @param[out] device The device item
* @return @c 0 on success,
/**
* @brief Gets the previous item of the device list.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device_list The list of connected devices
* @param[out] device The device item
* @return @c 0 on success,
/**
* @brief Gets the type of the device.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device The device item
* @param[out] type The type of the device
* @return @c 0 on success,
/**
* @brief Gets the io direction of the device.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device The device item
* @param[out] io_direction The io direction of the device
* @return @c 0 on success,
/**
* @brief Gets the id of the device.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device The device item
* @param[out] id The id of the device
* @return @c 0 on success,
/**
* @brief Gets the name of the device.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device The device item
* @param[out] name The name of the device
* @return @c 0 on success,
/**
* @brief Gets the state of the device.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device The device item
* @param[out] state The state of the device
* @return @c 0 on success,
/**
* @brief Registers a callback function to be invoked when the state of connection of a sound device was changed.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device_mask The mask value
* @param[in] callback The interrupted callback function
* @param[in] user_data The user data to be passed to the callback function
/**
* @brief Unregisters the callback function which is called when the state of connection of a sound device was changed.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Registers a callback function to be invoked when the information of a sound device was changed.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] device_mask The mask value
* @param[in] callback The interrupted callback function
* @param[in] user_data The user data to be passed to the callback function
/**
* @brief Unregisters the callback function which is called when the information of a sound device was changed.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success