summaryrefslogtreecommitdiffstats
path: root/apps/recorder/peakmeter.h
diff options
context:
space:
mode:
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__ */