summaryrefslogtreecommitdiff
path: root/apps/recorder/peakmeter.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-05-09 13:01:59 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-05-09 13:01:59 +0000
commit38ef849d06c7f206b4e9238058ce7b52fbc5d019 (patch)
tree9426af72e4ea2e7c64bec9b65935d363b0af19ae /apps/recorder/peakmeter.c
parent382c23e10dc44a357c5ce65df01c38559d722314 (diff)
slightly rework peakmeter handling to make it cleaner and be able to be used in conditionals
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25913 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/peakmeter.c')
-rw-r--r--apps/recorder/peakmeter.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 154f605898..164b14b15c 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -78,7 +78,11 @@ static long pm_clip_timeout_r;
/* Temporarily en- / disables peak meter. This is especially for external
applications to detect if the peak_meter is in use and needs drawing at all */
-bool peak_meter_enabled = true;
+static bool peak_meter_enabled = true;
+void peak_meter_enable(bool enable)
+{
+ peak_meter_enabled = enable;
+}
/** Parameters **/
/* Range */