Display -inf when volume/gain controls are at zero/off

This commit is contained in:
Geoffrey D. Bennett
2023-12-04 13:28:17 +10:30
parent 770ce1cc23
commit 20c4ff5559
4 changed files with 28 additions and 11 deletions

View File

@@ -76,7 +76,7 @@ GtkWidget *create_mixer_controls(struct alsa_card *card) {
}
// create the gain control and attach to the grid
GtkWidget *w = make_gain_alsa_elem(elem);
GtkWidget *w = make_gain_alsa_elem(elem, 1);
gtk_grid_attach(GTK_GRID(mixer_top), w, input_num + 1, mix_num + 2, 1, 1);
// look up the r_snk entry for the mixer input number