mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
Completed control and mixer API
This commit is contained in:
parent
c4f5780e6e
commit
f7fbb6ce1a
6 changed files with 50 additions and 50 deletions
|
|
@ -26,16 +26,16 @@ static GdkGC *penOrangeLight[21] = { NULL, };
|
|||
static GdkGC *penRedShadow[21] = { NULL, };
|
||||
static GdkGC *penRedLight[21] = { NULL, };
|
||||
static GdkPixmap *pixmap[21] = { NULL, };
|
||||
static snd_ctl_element_t peaks;
|
||||
static snd_ctl_elem_t peaks;
|
||||
|
||||
static void update_peak_switch(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
memset(&peaks, 0, sizeof(peaks));
|
||||
peaks.id.iface = SND_CTL_ELEMENT_IFACE_MIXER;
|
||||
peaks.id.iface = SND_CTL_ELEM_IFACE_MIXER;
|
||||
strcpy(peaks.id.name, "Multi Track Peak");
|
||||
if ((err = snd_ctl_element_read(card_ctl, &peaks)) < 0)
|
||||
if ((err = snd_ctl_elem_read(card_ctl, &peaks)) < 0)
|
||||
g_print("Unable to read peaks: %s\n", snd_strerror(err));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue