forked from enlightenment/efl
emotion-gstreamer: use proper scale for volume.
Albeit gst-inspect returns a range from 0.0 to 10.0 for volume, anything more than 1.0 will be distorted and sound horible. SVN revision: 36485
This commit is contained in:
parent
922509b98d
commit
030a0f6e52
|
@ -1060,7 +1060,7 @@ em_audio_channel_mute_set(void *video,
|
|||
if (mute)
|
||||
g_object_set(G_OBJECT(volume), "volume", 0.0, NULL);
|
||||
else
|
||||
g_object_set(G_OBJECT(volume), "volume", ev->volume * 10.0, NULL);
|
||||
g_object_set(G_OBJECT(volume), "volume", ev->volume, NULL);
|
||||
|
||||
gst_object_unref(volume);
|
||||
}
|
||||
|
@ -1091,8 +1091,7 @@ em_audio_channel_volume_set(void *video,
|
|||
ev->volume = vol;
|
||||
volume = gst_bin_get_by_name(GST_BIN(ev->pipeline), "volume");
|
||||
if (!volume) return;
|
||||
g_object_set(G_OBJECT(volume), "volume",
|
||||
vol * 10.0, NULL);
|
||||
g_object_set(G_OBJECT(volume), "volume", vol, NULL);
|
||||
gst_object_unref(volume);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue