Skip to content

Commit

Permalink
gain
Browse files Browse the repository at this point in the history
  • Loading branch information
paulh002 committed Jun 20, 2022
1 parent 8079fe9 commit f07c95e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file not shown.
6 changes: 6 additions & 0 deletions AudioOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,23 @@ int controle_alsa(int device, int element, int ivalue)
snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_MIXER);
snd_ctl_elem_id_set_numid(id, element);
if (err = lookup_id(id, handle))
{
snd_ctl_close(handle);
return err;
}

snd_ctl_elem_value_set_id(value, id);
snd_ctl_elem_value_set_integer(value, 0, ivalue);
snd_ctl_elem_value_set_integer(value, 1, ivalue);
//snd_ctl_elem_value_set_integer(value, 1, 77);

if ((err = snd_ctl_elem_write(handle, value)) < 0) {
fprintf(stderr, "Control element write error: %s\n",
snd_strerror(err));
snd_ctl_close(handle);
return err;
}
snd_ctl_close(handle);
return 0;
}

Expand Down

0 comments on commit f07c95e

Please sign in to comment.