* @since_tizen 5.5
*
* @remarks This function is to set a specific built-in device when the system has multiple devices of the same built-in device type.
- * When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
- * If @a device is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
- * After this function is called, @a device is not needed for the function's work. It's okay to destroy it by destroying the list from which it was obtained.
+ * When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
+ * If @a device is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ * After this function is called, @a device is not needed for the function's work. It's okay to destroy it by destroying the list from which it was obtained.
*
* @param[in] stream_info The handle of stream information
* @param[in] io_direction The IO direction of the device
*
* @remarks This function is to return the preferred device id per each direction if it has been set.
* If there is no preferred device for a given direction, the corresponding output value will be set to
- * #SOUND_MANAGER_STREAM_NO_PREFERRED_DEVICE.
- * You can get a device handle of the id value by using sound_manager_get_device_list(),
- * sound_manager_get_next_device() and sound_manager_get_device_id().
+ * #SOUND_MANAGER_STREAM_NO_PREFERRED_DEVICE.
+ * You can get a device handle of the id value by using sound_manager_get_device_list(),
+ * sound_manager_get_next_device() and sound_manager_get_device_id().
*
* @param[in] stream_info The handle of stream information
* @param[out] in_device_id The preferred input device id
* @since_tizen 5.5
*
* @remarks This function is to set a specific built-in device id when the system has multiple devices of the same built-in device type.
- * When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
- * If the device type of @a device_id is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ * When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
+ * If the device type of @a device_id is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
*
* @param[in] stream_info The handle of stream information
* @param[in] io_direction The IO direction of the device
* @since_tizen 5.5
*
* @remarks This function is to set a device id to streams made by the specific stream type.
- * The available stream types for this function are #SOUND_STREAM_TYPE_MEDIA, #SOUND_STREAM_TYPE_SYSTEM,\n
- * #SOUND_STREAM_TYPE_VOICE_INFORMATION and #SOUND_STREAM_TYPE_VOICE_RECOGNITION. Otherwise, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ * The available stream types for this function are #SOUND_STREAM_TYPE_MEDIA, #SOUND_STREAM_TYPE_SYSTEM,\n
+ * #SOUND_STREAM_TYPE_VOICE_INFORMATION and #SOUND_STREAM_TYPE_VOICE_RECOGNITION. Otherwise, #SOUND_MANAGER_ERROR_POLICY will be returned.
*
* @param[in] stream_type The type of stream
* @param[in] io_direction The IO direction of the device
*
* @remarks This function is to return the preemptive device id per each direction if it has been set.
* If there is no preemptive device for a given direction, the corresponding output value will be set to
- * #SOUND_MANAGER_STREAM_NO_PREEMPTIVE_DEVICE.
- * You can get a device handle of the id value by using sound_manager_get_device_list(),
- * sound_manager_get_next_device() and sound_manager_get_device_id().
+ * #SOUND_MANAGER_STREAM_NO_PREEMPTIVE_DEVICE.
+ * You can get a device handle of the id value by using sound_manager_get_device_list(),
+ * sound_manager_get_next_device() and sound_manager_get_device_id().
*
* @param[in] stream_type The type of stream
* @param[out] in_device_id The preemptive input device id
* @since_tizen 5.5
*
* @remarks This function is to set a specific built-in device id when the system has multiple devices of the same built-in device type.
- * When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
- * If the device type of @a device_id is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ * When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
+ * If the device type of @a device_id is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
*
* @param[in] stream_info The handle of stream information
* @param[in] io_direction The IO direction of the device
* @since_tizen 5.5
*
* @remarks This function is to set a device id to streams made by the specific stream type.
- * The available stream types for this function are #SOUND_STREAM_TYPE_MEDIA, #SOUND_STREAM_TYPE_SYSTEM,\n
- * #SOUND_STREAM_TYPE_VOICE_INFORMATION and #SOUND_STREAM_TYPE_VOICE_RECOGNITION. Otherwise, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ * The available stream types for this function are #SOUND_STREAM_TYPE_MEDIA, #SOUND_STREAM_TYPE_SYSTEM,\n
+ * #SOUND_STREAM_TYPE_VOICE_INFORMATION and #SOUND_STREAM_TYPE_VOICE_RECOGNITION. Otherwise, #SOUND_MANAGER_ERROR_POLICY will be returned.
*
* @param[in] stream_type The type of stream
* @param[in] io_direction The IO direction of the device
*
* @remarks This function is to return the preemptive device id per each direction if it has been set.
* If there is no preemptive device for a given direction, the corresponding output value will be set to
- * #SOUND_MANAGER_STREAM_NO_PREEMPTIVE_DEVICE.
- * You can get a device handle of the id value by using sound_manager_get_device_list(),
- * sound_manager_get_next_device() and sound_manager_get_device_id().
+ * #SOUND_MANAGER_STREAM_NO_PREEMPTIVE_DEVICE.
+ * You can get a device handle of the id value by using sound_manager_get_device_list(),
+ * sound_manager_get_next_device() and sound_manager_get_device_id().
*
* @param[in] stream_type The type of stream
* @param[out] in_device_id The preemptive input device id
Name: capi-media-sound-manager
Summary: Sound Manager library
-Version: 0.6.4
+Version: 0.6.5
Release: 0
Group: Multimedia/API
License: Apache-2.0
SM_ENTER_CRITICAL_SECTION_WITH_RETURN(&stream_h->focus_state_mutex, MM_ERROR_SOUND_INTERNAL);
ret = _destroy_pa_connection_and_unregister_focus(stream_h);
SM_LEAVE_CRITICAL_SECTION(&stream_h->focus_state_mutex);
- if (ret == MM_ERROR_NONE) {
+ if (ret == MM_ERROR_NONE)
SM_SAFE_FREE(stream_h);
- }
return _convert_sound_manager_error_code(__func__, ret);
}
ret = _get_preemptive_device(stream_type, in_device_id, out_device_id);
return _convert_sound_manager_error_code(__func__, ret);
-}
\ No newline at end of file
+}
preferred_device_id = atoi(cmd);
cnt++;
} else if (cnt == 1) {
- switch ( atoi(cmd)) {
+ switch (atoi(cmd)) {
case 0:
direction = SOUND_DEVICE_IO_DIRECTION_OUT;
break;