diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/lang/english.lang | 17 | ||||
-rw-r--r-- | apps/menus/sound_menu.c | 5 | ||||
-rw-r--r-- | apps/settings_list.c | 6 |
3 files changed, 26 insertions, 2 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang index d0dc5c5fc4..dcad532f7a 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -11911,6 +11911,23 @@ </voice> </phrase> <phrase> + id: LANG_COMPRESSOR_ATTACK + desc: in sound settings + user: core + <source> + *: none + swcodec: "Attack Time" + </source> + <dest> + *: none + swcodec: "Attack Time" + </dest> + <voice> + *: none + swcodec: "Attack Time" + </voice> +</phrase> +<phrase> id: LANG_COMPRESSOR_RELEASE desc: in sound settings user: core diff --git a/apps/menus/sound_menu.c b/apps/menus/sound_menu.c index fd192cb661..28cc257193 100644 --- a/apps/menus/sound_menu.c +++ b/apps/menus/sound_menu.c @@ -140,12 +140,15 @@ static int timestretch_callback(int action,const struct menu_item_ex *this_item) MENUITEM_SETTING(compressor_knee, &global_settings.compressor_settings.knee, lowlatency_callback); + MENUITEM_SETTING(compressor_attack, + &global_settings.compressor_settings.attack_time, + lowlatency_callback); MENUITEM_SETTING(compressor_release, &global_settings.compressor_settings.release_time, lowlatency_callback); MAKE_MENU(compressor_menu,ID2P(LANG_COMPRESSOR), NULL, Icon_NOICON, &compressor_threshold, &compressor_gain, &compressor_ratio, - &compressor_knee, &compressor_release); + &compressor_knee, &compressor_attack, &compressor_release); #endif #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) diff --git a/apps/settings_list.c b/apps/settings_list.c index 6ffb2b551b..bd2bfce36f 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -1653,7 +1653,11 @@ const struct settings_list settings[] = { CHOICE_SETTING(F_SOUNDSETTING|F_NO_WRAP, compressor_settings.knee, LANG_COMPRESSOR_KNEE, 1, "compressor knee", "hard knee,soft knee", compressor_set, 2, - ID2P(LANG_COMPRESSOR_HARD_KNEE), ID2P(LANG_COMPRESSOR_SOFT_KNEE)), + ID2P(LANG_COMPRESSOR_HARD_KNEE), ID2P(LANG_COMPRESSOR_SOFT_KNEE)), + INT_SETTING_NOWRAP(F_SOUNDSETTING, compressor_settings.attack_time, + LANG_COMPRESSOR_ATTACK, 5, + "compressor attack time", UNIT_MS, 0, 30, + 5, NULL, NULL, compressor_set), INT_SETTING_NOWRAP(F_SOUNDSETTING, compressor_settings.release_time, LANG_COMPRESSOR_RELEASE, 500, "compressor release time", UNIT_MS, 100, 1000, |