|
|
|
@ -102,6 +102,29 @@ extern AudioMixer4 mixer_l; |
|
|
|
|
extern AudioAmplifier volume_r; |
|
|
|
|
extern AudioAmplifier volume_l; |
|
|
|
|
|
|
|
|
|
/******************************************
|
|
|
|
|
TEXT GETTER FUCTIONS |
|
|
|
|
******************************************/ |
|
|
|
|
const char comp_gain_value_text1[] = " 0 dB"; |
|
|
|
|
const char comp_gain_value_text2[] = "+ 6 dB"; |
|
|
|
|
const char comp_gain_value_text3[] = "+12 dB"; |
|
|
|
|
|
|
|
|
|
char* get_comp_gain_value_text(void) |
|
|
|
|
{ |
|
|
|
|
switch (configuration.comp_gain) |
|
|
|
|
{ |
|
|
|
|
case 0: |
|
|
|
|
return (comp_gain_value_text1); |
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
return (comp_gain_value_text2); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
return (comp_gain_value_text3); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/******************************************
|
|
|
|
|
MAIN MENU |
|
|
|
|
******************************************/ |
|
|
|
@ -327,7 +350,8 @@ LiquidMenu overdrive_menu(lcd); |
|
|
|
|
#define NUM_COMP_GAIN_MENUS 1 |
|
|
|
|
const char comp_gain_text1[] PROGMEM = "Comp. Gain"; |
|
|
|
|
LiquidLine comp_gain_line1(1, 0, comp_gain_text1); |
|
|
|
|
LiquidLine comp_gain_line2(1, 1, configuration.comp_gain); |
|
|
|
|
//LiquidLine comp_gain_line2(1, 1, configuration.comp_gain);
|
|
|
|
|
LiquidLine comp_gain_line2(1, 1, get_comp_gain_value_text); |
|
|
|
|
LiquidScreen comp_gain_screen; |
|
|
|
|
LiquidMenu comp_gain_menu(lcd); |
|
|
|
|
|
|
|
|
@ -1075,7 +1099,7 @@ void callback_info_function() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/******************************************
|
|
|
|
|
HELPER FUCTIONS |
|
|
|
|
HELPER MENU FUNCTION |
|
|
|
|
******************************************/ |
|
|
|
|
|
|
|
|
|
float mapfloat(float val, float in_min, float in_max, float out_min, float out_max) |
|
|
|
@ -1132,6 +1156,9 @@ void goto_system_menu(void) |
|
|
|
|
enc[RIGHT_ENCODER].write(menu_position[SYSTEM], 0, NUM_SYSTEM_MENUS - 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/******************************************
|
|
|
|
|
INIT MENU FUNCTION |
|
|
|
|
******************************************/ |
|
|
|
|
void init_menus(void) |
|
|
|
|
{ |
|
|
|
|
uint8_t i; |
|
|
|
|