/**
* @brief Called when the state of focus that belongs to the stream_info is changed.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
- * @param[in] reason The reason for state change of the focus
- * @param[in] extra_info The extra information
- * @param[in] user_data The user data passed from the callback registration function
*
* @remarks This function is issued in the internal thread of the sound manager.\n
* Therefore it is recommended not to call UI update function in this function.
*
+ * @param[in] stream_info The handle of stream information
+ * @param[in] reason The reason for state change of the focus
+ * @param[in] extra_info The extra information
+ * @param[in] user_data The user data passed from the callback registration function
* @pre You should register this callback using sound_manager_create_stream_information().
* @post Use sound_manager_get_focus_state() in this callback to figure out how the focus state of the stream_info has been changed.
* @see sound_manager_create_stream_information()
/**
* @brief Creates a handle for stream information.
* @since_tizen 3.0
- * @details To apply the stream policy according to this stream information, this handle should be passed to other APIs\n
- * related to playback or recording. (e.g., player, wav-player, audio-io, etc.)
+ *
+ * @remarks The registered callback is issued in the internal thread of the sound manager.\n
+ * Do not call this API within sound_stream_focus_state_changed_cb() or sound_stream_focus_state_watch_cb(),\n
+ * otherwise SOUND_MANAGER_ERROR_INVALID_OPERATION will be returned.\n
+ * To apply the stream policy according to this stream information, this handle should be passed to other APIs\n
+ * related to playback or recording.(e.g. player, wav-player, audio-io, etc.)
+ *
* @param[in] stream_type The type of stream
* @param[in] callback The focus state change callback function (mandatory)
* @param[in] user_data The user data to be passed to the callback function
* @param[out] stream_info The handle of stream information
- *
- * @remarks The registered callback is issued in the internal thread of the sound manager.\n
- * Do not call this API within sound_stream_focus_state_changed_cb() and sound_stream_focus_state_watch_cb(),\n
- * otherwise SOUND_MANAGER_ERROR_INVALID_OPERATION will be returned.
- *
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Destroys the handle for stream information.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
*
- * @remarks Do not call this API within sound_stream_focus_state_changed_cb() and sound_stream_focus_state_watch_cb(),\n
+ * @remarks Do not call this API within sound_stream_focus_state_changed_cb() or sound_stream_focus_state_watch_cb(),\n
* otherwise SOUND_MANAGER_ERROR_INVALID_OPERATION will be returned.
*
+ * @param[in] stream_info The handle of stream information
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Adds the device to the stream information for the stream routing.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
- * @param[in] device The device item from sound_device_list_h
*
* @remarks Use sound_manager_get_current_device_list() and sound_manager_get_next_device() to get the device.\n
* SOUND_MANAGER_ERROR_POLICY could be returned according to the stream type of the stream_info.\n
* The available types of the stream_info for this API are SOUND_STREAM_TYPE_VOIP and SOUND_STREAM_TYPE_MEDIA_EXTERNAL_ONLY.
*
+ * @param[in] stream_info The handle of stream information
+ * @param[in] device The device item from sound_device_list_h
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Removes the device to the stream information for the stream routing.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
- * @param[in] device The device item from sound_device_list_h
*
* @remarks Use sound_manager_get_current_device_list() and sound_manager_get_next_device() to get the device.\n
*
+ * @param[in] stream_info The handle of stream information
+ * @param[in] device The device item from sound_device_list_h
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Applies the stream routing.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
*
* @remarks If the stream has not been made yet, this setting will be applied when the stream starts to play.\n
*
+ * @param[in] stream_info The handle of stream information
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Acquires the stream focus.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
- * @param[in] focus_mask The focus mask that user wants to acquire
- * @param[in] extra_info The Extra information for this request (optional, this can be null)
*
- * @remarks Do not call this API within sound_stream_focus_state_changed_cb() and sound_stream_focus_state_watch_cb(),\n
+ * @remarks Do not call this API within sound_stream_focus_state_changed_cb() or sound_stream_focus_state_watch_cb(),\n
* otherwise SOUND_MANAGER_ERROR_INVALID_OPERATION will be returned.
*
+ * @param[in] stream_info The handle of stream information
+ * @param[in] focus_mask The focus mask that user wants to acquire
+ * @param[in] extra_info The Extra information for this request (optional, this can be null)
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Releases the acquired focus.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
- * @param[in] focus_mask The focus mask that user wants to release
- * @param[in] extra_info TheExtra information for this request (optional, this can be null)
*
- * @remarks Do not call this API within sound_stream_focus_state_changed_cb() and sound_stream_focus_state_watch_cb(),\n
+ * @remarks Do not call this API within sound_stream_focus_state_changed_cb() or sound_stream_focus_state_watch_cb(),\n
* otherwise SOUND_MANAGER_ERROR_INVALID_OPERATION will be returned.
*
+ * @param[in] stream_info The handle of stream information
+ * @param[in] focus_mask The focus mask that user wants to release
+ * @param[in] extra_info TheExtra information for this request (optional, this can be null)
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Sets auto focus reacquisition property.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
- * @param[in] enable The auto focus reacquisition property to set : (@c true = enable, @c false = disable)
*
* @remarks The focus reacquistion is set as default.
* If you don't want to reacquire the focus you've lost automatically, disable the focus reacqusition setting by using this API and vice versa.
*
+ * @param[in] stream_info The handle of stream information
+ * @param[in] enable The auto focus reacquisition property to set : (@c true = enable, @c false = disable)
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Gets auto focus reacquisition property.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
- * @param[out] enabled The value of focus auto reacquisition property : (@c true = enabled, @c false = disabled)
*
* @remarks The default value is true.
*
+ * @param[in] stream_info The handle of stream information
+ * @param[out] enabled The value of focus auto reacquisition property : (@c true = enabled, @c false = disabled)
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Gets the sound type of the stream information.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
- * @param[out] sound_type The sound type
*
* @remarks In case of the stream_info made with #SOUND_STREAM_TYPE_EMERGENCY, it'll return #SOUND_MANAGER_ERROR_NO_DATA.\n
* Because there is no sound_type_e matched to this stream_info.
*
+ * @param[in] stream_info The handle of stream information
+ * @param[out] sound_type The sound type
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Gets the list consisting of connected devices.
* @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
*
* @remarks @a device_list should be freed using sound_manager_free_device_list() since 3.0.\n
* Use sound_manager_get_next_device() to get the first node of the list.
*
+ * @param[in] device_mask The mask value
+ * @param[out] device_list The list of connected devices
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
/**
* @brief Frees device list and each item of list.
* @since_tizen 3.0
- * @param[in] device_list The device list got with sound_manager_get_current_device_list.
*
* @remarks This API will deallocate not only device list itself but also each item.
*
+ * @param[in] device_list The device list got with sound_manager_get_current_device_list.
* @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 state of connection of a sound device was changed.
* @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
*
* @remarks The initial state of sound devices connected is deactivated.
*
+ * @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @internal
* @brief Creates a handle for stream information.
* @since_tizen 3.0
- * @details To apply the stream policy according to this stream information, this handle should be passed to other APIs\n
- * related to playback or recording. (e.g., player, wav-player, audio-io, etc.)
+ *
+ * @remarks Do not call this API within sound_stream_focus_state_changed_cb() and sound_stream_focus_state_watch_cb(),\n
+ * otherwise SOUND_MANAGER_ERROR_INVALID_OPERATION will be returned.\n
+ * To apply the stream policy according to this stream information, this handle should be passed to other APIs\n
+ * related to playback or recording.(e.g. player, wav-player, audio-io, etc.)
+ *
* @param[in] stream_type The type of stream for internal usage
* @param[in] callback The focus state change callback function
* @param[in] user_data The user data to be passed to the callback function
* @param[out] stream_info The handle of stream information
- *
- * @remarks Do not call this API within sound_stream_focus_state_changed_cb() and sound_stream_focus_state_watch_cb(),\n
- * otherwise SOUND_MANAGER_ERROR_INVALID_OPERATION will be returned.
- *
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @internal
* @brief Sets the stream routing option.
* @since_tizen 3.0
- * @param[in] stream_info The handle of stream information
- * @param[in] name The name of option
- * @param[in] value The value of option
*
* @remarks If the stream has not been made yet, this setting will be applied when the stream starts to play.
*
+ * @param[in] stream_info The handle of stream information
+ * @param[in] name The name of option
+ * @param[in] value The value of option
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @param[in] stream_info The handle of stream information
* @param[in] api_name The native API name
* @param[out] is_available If @c true the api_name is available, @c false the api_name is not available for this strema_info
- *
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @since_tizen 3.0
* @param[in] stream_info The handle of stream information
* @param[out] type The stream type
- *
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @internal
* @brief Gets the reason for the current acquired playback focus.
* @since_tizen 3.0
- * @param[out] acquired_by The reason for the current acquired playback focus
- * @param[out] extra_info The extra information of the acquired playback focus (this can be null)
*
* @remarks If there is no acquired playback focus in this system, it'll return #SOUND_MANAGER_ERROR_NO_DATA.
*
+ * @param[out] acquired_by The reason for the current acquired playback focus
+ * @param[out] extra_info The extra information of the acquired playback focus (this can be null)
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @internal
* @brief Gets the reason for the current acquired recording focus.
* @since_tizen 3.0
- * @param[out] acquired_by The reason for the current acquired recording focus
- * @param[out] extra_info The extra information of the acquired recording focus (this can be null)
*
* @remarks If there is no acquired recording focus in this system, it'll return #SOUND_MANAGER_ERROR_NO_DATA.
*
+ * @param[out] acquired_by The reason for the current acquired recording focus
+ * @param[out] extra_info The extra information of the acquired recording focus (this can be null)
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @since_tizen 3.0
* @param[in] stream_info The handle of stream information
* @param[out] virtual_stream The handle of virtual stream
- *
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @brief Destroys the virtual stream handle.
* @since_tizen 3.0
* @param[in] virtual_stream The handle of virtual stream
- *
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @brief Starts the virtual stream.
* @since_tizen 3.0
* @param[in] virtual_stream The handle of virtual stream
- *
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success
* @brief Stops the virtual stream.
* @since_tizen 3.0
* @param[in] virtual_stream The handle of virtual stream
- *
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SOUND_MANAGER_ERROR_NONE Success