mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-26 07:00:10 -05:00
envy24control: port to GTK 3
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
This commit is contained in:
parent
32495631b1
commit
16bb554fce
12 changed files with 541 additions and 534 deletions
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "envy24control.h"
|
||||
|
||||
void control_input_callback(gpointer data, gint source, GdkInputCondition condition)
|
||||
gboolean control_input_callback(GIOChannel *source, GIOCondition condition, gpointer data)
|
||||
{
|
||||
snd_ctl_t *ctl = (snd_ctl_t *)data;
|
||||
snd_ctl_event_t *ev;
|
||||
|
|
@ -29,12 +29,12 @@ void control_input_callback(gpointer data, gint source, GdkInputCondition condit
|
|||
|
||||
snd_ctl_event_alloca(&ev);
|
||||
if (snd_ctl_read(ctl, ev) < 0)
|
||||
return;
|
||||
return TRUE;
|
||||
name = snd_ctl_event_elem_get_name(ev);
|
||||
index = snd_ctl_event_elem_get_index(ev);
|
||||
mask = snd_ctl_event_elem_get_mask(ev);
|
||||
if (! (mask & (SND_CTL_EVENT_MASK_VALUE | SND_CTL_EVENT_MASK_INFO)))
|
||||
return;
|
||||
return TRUE;
|
||||
|
||||
switch (snd_ctl_event_elem_get_interface(ev)) {
|
||||
case SND_CTL_ELEM_IFACE_MIXER:
|
||||
|
|
@ -88,5 +88,6 @@ void control_input_callback(gpointer data, gint source, GdkInputCondition condit
|
|||
default:
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue