1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 by Philipp Pertermann
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef __PEAKMETER_H__
20 #define __PEAKMETER_H__
24 extern bool peak_meter_histogram(void);
28 extern bool peak_meter_enabled
;
29 extern int peak_meter_fps
;
31 extern void peak_meter_playback(bool playback
);
32 extern void peak_meter_draw(int x
, int y
, int width
, int height
);
33 extern void peak_meter_set_clip_hold(int time
);
34 extern void peak_meter_peek(void);
35 extern void peak_meter_init_range( bool dbfs
, int range_min
, int range_max
);
36 extern void peak_meter_init_times(int release
, int hold
, int clip_hold
);
38 extern void peak_meter_set_min(int newmin
);
39 extern int peak_meter_get_min(void);
40 extern void peak_meter_set_max(int newmax
);
41 extern int peak_meter_get_max(void);
42 extern void peak_meter_set_use_dbfs(int use
);
43 extern int peak_meter_get_use_dbfs(void);
44 extern int calc_db (int isample
);
45 extern unsigned short peak_meter_scale_value(unsigned short val
, int meterwidth
);
47 extern unsigned short peak_meter_range_min
;
48 extern unsigned short peak_meter_range_max
;
50 #endif /* __PEAKMETER_H__ */