}
EXPORT_API
-int mm_sound_util_volume_set_value_by_type(volume_type_t type, unsigned int value)
-{
- int ret = MM_ERROR_NONE;
- int vconf_value = 0;
-
- vconf_value = value;
- debug_log("volume_set_value %s %d", g_volume_str[type], value);
-
- /* Set volume value to VCONF */
- if ((ret = vconf_set_int(g_volume_vconf[type], vconf_value)) != 0) {
- int vconf_errno;
- vconf_errno = vconf_get_ext_errno();
- debug_error ("vconf_set_int(%s) failed..ret[%d] errno[%d]\n", g_volume_vconf[type], ret, vconf_errno);
- if (vconf_errno == VCONF_ERROR_FILE_PERM)
- return MM_ERROR_SOUND_PERMISSION_DENIED;
- else
- return MM_ERROR_SOUND_INTERNAL;
- }
- return ret;
-}
-
-EXPORT_API
bool mm_sound_util_is_process_alive(pid_t pid)
{
gchar *tmp = NULL;
#endif
int mm_sound_util_volume_get_value_by_type(volume_type_t type, unsigned int *value);
-int mm_sound_util_volume_set_value_by_type(volume_type_t type, unsigned int value);
bool mm_sound_util_is_process_alive(pid_t pid);
return MM_ERROR_INVALID_ARGUMENT;
}
- ret = mm_sound_util_volume_set_value_by_type(volume_type, volume_level);
- if (ret == MM_ERROR_NONE) {
- /* update shared memory value */
- if(MM_ERROR_NONE != mm_sound_client_set_volume_by_type(volume_type, volume_level)) {
- debug_error("Can not set volume to shared memory 0x%x\n", ret);
- }
- }
+ /* request daemon to set volume */
+ ret = mm_sound_client_set_volume_by_type(volume_type, volume_level);
+ if (MM_ERROR_NONE != ret)
+ debug_error("Can not set volume, ret=0x%x", ret);
return ret;
}
Name: libmm-sound
Summary: MMSound Package contains client lib and sound_server binary
-Version: 0.11.10
+Version: 0.11.11
Release: 0
Group: System/Libraries
License: Apache-2.0