From f0bec023d9ff45cede09274dff12f015f0830a38 Mon Sep 17 00:00:00 2001 From: PurlingNayuki Date: Sat, 21 Dec 2013 21:33:54 +0800 Subject: Implement volume limiter feature Add a "volume limit" parameter to the configuration file. The maximum value of volume setting in sound menu will be limited to the same as volume limit. Also each time when setvol() is excuted, Rockbox will check if the global_settings.volume value larger than global_settings.volume_limit. If larger, take the value of volume_limit instead. The volume_limit argument shares the same maximum and minimum values with volume argument, while taking the maximum volume as its default value. Change-Id: I8ca9bc6ea6e617b48fc346aae5f2a0a1d259ae36 Reviewed-on: http://gerrit.rockbox.org/697 Reviewed-by: Jonathan Gordon --- apps/lang/chinese-simp.lang | 14 ++++++++++++++ apps/lang/chinese-trad.lang | 14 ++++++++++++++ apps/lang/english.lang | 14 ++++++++++++++ 3 files changed, 42 insertions(+) (limited to 'apps/lang') diff --git a/apps/lang/chinese-simp.lang b/apps/lang/chinese-simp.lang index 4c3dd3c18f..e90ec510d2 100644 --- a/apps/lang/chinese-simp.lang +++ b/apps/lang/chinese-simp.lang @@ -13039,3 +13039,17 @@ *: "扫描媒体时扫描指定文件夹" + + id: LANG_VOLUME_LIMIT + desc: in sound_settings + user: core + + *: "Maximum Volume Limit" + + + *: "音量限制" + + + *: "音量限制" + + diff --git a/apps/lang/chinese-trad.lang b/apps/lang/chinese-trad.lang index f8dc5c38d6..0d0b68d1e5 100644 --- a/apps/lang/chinese-trad.lang +++ b/apps/lang/chinese-trad.lang @@ -11240,3 +11240,17 @@ *: "檔案大小" + + id: LANG_VOLUME_LIMIT + desc: in sound_settings + user: core + + *: "Maximum Volume Limit" + + + *: "音量限制" + + + *: "音量限制" + + diff --git a/apps/lang/english.lang b/apps/lang/english.lang index dcad532f7a..d7f4476be6 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -13178,3 +13178,17 @@ *: "Slow" + + id: LANG_VOLUME_LIMIT + desc: in sound_settings + user: core + + *: "Maximum Volume Limit" + + + *: "Maximum Volume Limit" + + + *: "Maximum Volume Limit" + + -- cgit v1.2.3