summaryrefslogtreecommitdiff
path: root/apps/recorder/peakmeter.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-12-25 14:01:47 +0000
committerJens Arnold <amiconn@rockbox.org>2006-12-25 14:01:47 +0000
commit2597a1349772fe505d27cb94392eb4d8a3c3b35d (patch)
tree185a4809430f9dded488bb1b058d3f97345058a3 /apps/recorder/peakmeter.c
parent37aeb12cc99cc22f62c44d5b0adcae35d0c471d8 (diff)
downloadrockbox-2597a1349772fe505d27cb94392eb4d8a3c3b35d.tar.gz
rockbox-2597a1349772fe505d27cb94392eb4d8a3c3b35d.zip
Next round of static'ing and related fixes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11836 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/peakmeter.c')
-rw-r--r--apps/recorder/peakmeter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 1033ffee67..69c5e95893 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -50,7 +50,7 @@ static bool pm_playback = true; /* selects between playback and recording peaks
50 50
51#endif 51#endif
52 52
53struct meter_scales scales[NB_SCREENS]; 53static struct meter_scales scales[NB_SCREENS];
54 54
55#if !defined(SIMULATOR) && CONFIG_CODEC != SWCODEC 55#if !defined(SIMULATOR) && CONFIG_CODEC != SWCODEC
56/* Data source */ 56/* Data source */
@@ -84,7 +84,7 @@ unsigned short peak_meter_range_min; /* minimum of range in samples */
84unsigned short peak_meter_range_max; /* maximum of range in samples */ 84unsigned short peak_meter_range_max; /* maximum of range in samples */
85static unsigned short pm_range; /* range width in samples */ 85static unsigned short pm_range; /* range width in samples */
86static bool pm_use_dbfs = true; /* true if peakmeter displays dBfs */ 86static bool pm_use_dbfs = true; /* true if peakmeter displays dBfs */
87bool level_check; /* true if peeked at peakmeter before drawing */ 87static bool level_check; /* true if peeked at peakmeter before drawing */
88static unsigned short pm_db_min = 0; /* minimum of range in 1/100 dB */ 88static unsigned short pm_db_min = 0; /* minimum of range in 1/100 dB */
89static unsigned short pm_db_max = 9000; /* maximum of range in 1/100 dB */ 89static unsigned short pm_db_max = 9000; /* maximum of range in 1/100 dB */
90static unsigned short pm_db_range = 9000; /* range width in 1/100 dB */ 90static unsigned short pm_db_range = 9000; /* range width in 1/100 dB */
@@ -298,7 +298,7 @@ static int db_to_sample_bin_search(int min, int max, int db)
298 * @return int - The return value is in the range of 298 * @return int - The return value is in the range of
299 * 0 <= return value < MAX_PEAK 299 * 0 <= return value < MAX_PEAK
300 */ 300 */
301int peak_meter_db2sample(int db) 301int peak_meter_db2sample(int db)
302{ 302{
303 int retval = 0; 303 int retval = 0;
304 304
@@ -791,7 +791,7 @@ static int peak_meter_read_r(void)
791 * This is used by the histogram feature in the recording screen. 791 * This is used by the histogram feature in the recording screen.
792 * Values are in the range 0 <= peak_x < MAX_PEAK. MAX_PEAK is typ 32767. 792 * Values are in the range 0 <= peak_x < MAX_PEAK. MAX_PEAK is typ 32767.
793 */ 793 */
794extern void peak_meter_get_peakhold(int *peak_left, int *peak_right) 794void peak_meter_get_peakhold(int *peak_left, int *peak_right)
795{ 795{
796 if (peak_left) 796 if (peak_left)
797 *peak_left = pm_peakhold_left; 797 *peak_left = pm_peakhold_left;