Add configurable taper to GtkDial

The taper was previously set to a log function which matched the
Clarett volume knob. Add linear option to match the Scarlett 4th Gen
input gain knobs and hardware level meters.
This commit is contained in:
Geoffrey D. Bennett
2024-01-17 16:03:56 +10:30
parent 189b9ff6f6
commit 492c348897
7 changed files with 83 additions and 8 deletions

View File

@@ -7,4 +7,13 @@
#include "alsa.h"
GtkWidget *make_gain_alsa_elem(struct alsa_elem *alsa_elem, int zero_is_off);
enum {
WIDGET_GAIN_TAPER_LINEAR,
WIDGET_GAIN_TAPER_LOG
};
GtkWidget *make_gain_alsa_elem(
struct alsa_elem *elem,
int zero_is_off,
int taper_type
);