summaryrefslogtreecommitdiffstats
path: root/apps/recorder/peakmeter.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-10-29 12:09:15 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-10-29 12:09:15 +0000
commitfd0cc3b2b1302d77f3404861509e75c64fd505af (patch)
treeacdb25b87a549908424e052c04cc323d02b681f4 /apps/recorder/peakmeter.h
parent8f11dc00ac1a0a5fe009d1d07d9a1378c3300ba8 (diff)
downloadrockbox-fd0cc3b2b1302d77f3404861509e75c64fd505af.tar.gz
rockbox-fd0cc3b2b1302d77f3404861509e75c64fd505af.zip
Phil Pertermann's dB peak meter patch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2774 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/peakmeter.h')
-rw-r--r--apps/recorder/peakmeter.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/apps/recorder/peakmeter.h b/apps/recorder/peakmeter.h
index a5f25808e6..356926f9de 100644
--- a/apps/recorder/peakmeter.h
+++ b/apps/recorder/peakmeter.h
@@ -19,12 +19,32 @@
#ifndef __PEAKMETER_H__
#define __PEAKMETER_H__
+/*#define PM_DEBUG */
+#ifdef PM_DEBUG
+extern bool peak_meter_histogramm(void);
+#endif
+
+
extern bool peak_meter_enabled;
+extern int peak_meter_fps;
-extern void peak_meter_init(void);
extern void peak_meter_playback(bool playback);
extern void peak_meter_draw(int x, int y, int width, int height);
extern void peak_meter_set_clip_hold(int time);
extern void peak_meter_peek(void);
+extern void peak_meter_init_range( bool dbfs, int range_min, int range_max);
+extern void peak_meter_init_times(int release, int hold, int clip_hold);
+
+extern void peak_meter_set_min(int newmin);
+extern int peak_meter_get_min(void);
+extern void peak_meter_set_max(int newmax);
+extern int peak_meter_get_max(void);
+extern void peak_meter_set_use_dbfs(int use);
+extern int peak_meter_get_use_dbfs(void);
+extern int calc_db (int isample);
+extern unsigned short peak_meter_scale_value(unsigned short val, int meterwidth);
+
+extern unsigned short peak_meter_range_min;
+extern unsigned short peak_meter_range_max;
#endif /* __PEAKMETER_H__ */