From ef2b7160472feb7a5db781ccbe7afcde994c1a93 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Sat, 3 Sep 2011 09:49:53 -0400 Subject: [PATCH] ocarina: Change volume when volume slider changed I pass along the new value to libsaria to set in the gstreamer pipeline. --- gui/buttons/volume.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/buttons/volume.cpp b/gui/buttons/volume.cpp index ce725caa..d1518ed4 100644 --- a/gui/buttons/volume.cpp +++ b/gui/buttons/volume.cpp @@ -1,4 +1,5 @@ +#include #include #include @@ -24,6 +25,7 @@ static void set_increment(GtkWidget *volume, double incr) static void changed(GtkWidget *button, gdouble value, gpointer data) { + libsaria_get()->set_volume(value); resize(button); }