[gtk/wip/otte/for-master: 1/2] gtkmediafile: Use cubic volume function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 1/2] gtkmediafile: Use cubic volume function
- Date: Tue, 27 Oct 2020 15:47:48 +0000 (UTC)
commit 8e6701c9a6234580e13c08fc8851d7f3b13a4a4f
Author: Benjamin Otte <otte redhat com>
Date: Tue Oct 27 16:16:16 2020 +0100
gtkmediafile: Use cubic volume function
Gstreamer suggests doing that.
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1439
Fixes #3295
modules/media/gtkgstmediafile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/media/gtkgstmediafile.c b/modules/media/gtkgstmediafile.c
index b094796fd5..40643b881b 100644
--- a/modules/media/gtkgstmediafile.c
+++ b/modules/media/gtkgstmediafile.c
@@ -294,7 +294,7 @@ gtk_gst_media_file_update_audio (GtkMediaStream *stream,
GtkGstMediaFile *self = GTK_GST_MEDIA_FILE (stream);
gst_player_set_mute (self->player, muted);
- gst_player_set_volume (self->player, volume);
+ gst_player_set_volume (self->player, volume * volume * volume);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]