ocarina: Change volume when volume slider changed

I pass along the new value to libsaria to set in the gstreamer pipeline.
This commit is contained in:
Bryan Schumaker 2011-09-03 09:49:53 -04:00
parent f354a305ae
commit ef2b716047
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#include <libsaria/libsaria.h>
#include <libsaria/print.h>
#include <ocarina/button.h>
@ -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);
}