]> git.alsa-project.org Git - alsa-tools.git/commitdiff
Completed mixer API. Improved iterators. Renamed control values struct. Rewritten...
authorAbramo Bagnara <abramo@alsa-project.org>
Sun, 11 Feb 2001 15:45:44 +0000 (15:45 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Sun, 11 Feb 2001 15:45:44 +0000 (15:45 +0000)
envy24control/envy24control.c
envy24control/hardware.c
envy24control/levelmeters.c
envy24control/mixer.c
envy24control/patchbay.c

index d9cc63f60f6fa40971e4eea977c24fe6123a8238..d0dbd779e4851d0c28c9e1d62562f4ac44d64142 100644 (file)
@@ -1029,7 +1029,7 @@ int main(int argc, char **argv)
         char name[32], title[128];
        int err;
        unsigned int cards_mask;
-       snd_ctl_elem_t ctl;
+       snd_ctl_elem_value_t ctl;
        // snd_mixer_filter_t filter;
 
        /* Go through gtk initialization */
index 6f1bd98355bcba374165f6494be64b8299b0bf4e..f1089399cf267cb5a6b971d06350b4f311b242e8 100644 (file)
 
 #include "envy24control.h"
 
-static snd_ctl_elem_t spdif_master;
-static snd_ctl_elem_t word_clock_sync;
-static snd_ctl_elem_t volume_rate;
-static snd_ctl_elem_t spdif_input;
-static snd_ctl_elem_t spdif_output;
+static snd_ctl_elem_value_t spdif_master;
+static snd_ctl_elem_value_t word_clock_sync;
+static snd_ctl_elem_value_t volume_rate;
+static snd_ctl_elem_value_t spdif_input;
+static snd_ctl_elem_value_t spdif_output;
 
 #define toggle_set(widget, state) \
        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), state);
@@ -96,7 +96,7 @@ void master_clock_toggled(GtkWidget *togglebutton, gpointer data)
 
 gint master_clock_status_timeout_callback(gpointer data)
 {
-       snd_ctl_elem_t sw;
+       snd_ctl_elem_value_t sw;
        int err;
        
        if (card_eeprom.subvendor != ICE1712_SUBDEVICE_DELTA1010)
index 9263cfbd14be35b57c07f75dc9d78c7201e91349..e68ed711a6ff99819bb212f28ca4fe6f9ad46e5b 100644 (file)
@@ -26,7 +26,7 @@ static GdkGC *penOrangeLight[21] = { NULL, };
 static GdkGC *penRedShadow[21] = { NULL, };
 static GdkGC *penRedLight[21] = { NULL, };
 static GdkPixmap *pixmap[21] = { NULL, };
-static snd_ctl_elem_t peaks;
+static snd_ctl_elem_value_t peaks;
 
 static void update_peak_switch(void)
 {
index 701e3276cefb96845d819e60bf5fe728a6b729f6..ad74039cb9160fcda3335349c774a9fa563feb76 100644 (file)
@@ -29,7 +29,7 @@ static int is_active(GtkWidget *widget)
 
 void mixer_update_stream(int stream, int vol_flag, int sw_flag)
 {
-       snd_ctl_elem_t vol, sw;
+       snd_ctl_elem_value_t vol, sw;
        int err;
        
        if (vol_flag) {
@@ -62,7 +62,7 @@ void mixer_update_stream(int stream, int vol_flag, int sw_flag)
 
 static void set_switch1(int stream, int left, int right)
 {
-       snd_ctl_elem_t sw;
+       snd_ctl_elem_value_t sw;
        int err;
        
        memset(&sw, 0, sizeof(sw));
@@ -147,7 +147,7 @@ void mixer_toggled_mute(GtkWidget *togglebutton, gpointer data)
 
 static void set_volume1(int stream, int left, int right)
 {
-       snd_ctl_elem_t vol;
+       snd_ctl_elem_value_t vol;
        int err;
        
        memset(&vol, 0, sizeof(vol));
index f36a00599d4519e279b5d4612d0e028ab25e5d57..f95ff94dfc8b2b5d055d9639b0e227c3277c331d 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "envy24control.h"
 
-static snd_ctl_elem_t routes;
+static snd_ctl_elem_value_t routes;
 
 #define toggle_set(widget, state) \
        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), state);