diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-08-01 23:34:44 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-01 23:34:44 +0000 |
commit | 839067b7b306e2da5142c3f31747205df8f9e4f5 (patch) | |
tree | 819e416c7a30d48de0a2160a2989d7f495d921cc /apps/recorder | |
parent | 1413f0cc953d92d91411d2d871fc4d44a294e82b (diff) | |
download | rockbox-839067b7b306e2da5142c3f31747205df8f9e4f5.tar.gz rockbox-839067b7b306e2da5142c3f31747205df8f9e4f5.zip |
More const policeing step 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4980 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/peakmeter.c | 4 | ||||
-rw-r--r-- | apps/recorder/recording.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index 33d1e25ee7..b069c1566b 100644 --- a/apps/recorder/peakmeter.c +++ b/apps/recorder/peakmeter.c | |||
@@ -103,14 +103,14 @@ static unsigned int ticks_per_redraw[TICKS_PER_DRAW_SIZE]; | |||
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | /* time out values for max */ | 105 | /* time out values for max */ |
106 | static long max_time_out[] = { | 106 | static const long max_time_out[] = { |
107 | 0 * HZ, HZ / 5, 30, HZ / 2, HZ, 2 * HZ, | 107 | 0 * HZ, HZ / 5, 30, HZ / 2, HZ, 2 * HZ, |
108 | 3 * HZ, 4 * HZ, 5 * HZ, 6 * HZ, 7 * HZ, 8 * HZ, | 108 | 3 * HZ, 4 * HZ, 5 * HZ, 6 * HZ, 7 * HZ, 8 * HZ, |
109 | 9 * HZ, 10 * HZ, 15 * HZ, 20 * HZ, 30 * HZ, 60 * HZ | 109 | 9 * HZ, 10 * HZ, 15 * HZ, 20 * HZ, 30 * HZ, 60 * HZ |
110 | }; | 110 | }; |
111 | 111 | ||
112 | /* time out values for clip */ | 112 | /* time out values for clip */ |
113 | static long clip_time_out[] = { | 113 | static const long clip_time_out[] = { |
114 | 0 * HZ, 1 * HZ, 2 * HZ, 3 * HZ, 4 * HZ, 5 * HZ, | 114 | 0 * HZ, 1 * HZ, 2 * HZ, 3 * HZ, 4 * HZ, 5 * HZ, |
115 | 6 * HZ, 7 * HZ, 8 * HZ, 9 * HZ, 10 * HZ, 15 * HZ, | 115 | 6 * HZ, 7 * HZ, 8 * HZ, 9 * HZ, 10 * HZ, 15 * HZ, |
116 | 20 * HZ, 25 * HZ, 30 * HZ, 45 * HZ, 60 * HZ, 90 * HZ, | 116 | 20 * HZ, 25 * HZ, 30 * HZ, 45 * HZ, 60 * HZ, 90 * HZ, |
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 242351a0d6..20b5fa016f 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -56,7 +56,7 @@ bool f3_rec_screen(void); | |||
56 | #define SOURCE_LINE 1 | 56 | #define SOURCE_LINE 1 |
57 | #define SOURCE_SPDIF 2 | 57 | #define SOURCE_SPDIF 2 |
58 | 58 | ||
59 | char *freq_str[6] = | 59 | const char* const freq_str[6] = |
60 | { | 60 | { |
61 | "44.1kHz", | 61 | "44.1kHz", |
62 | "48kHz", | 62 | "48kHz", |
@@ -79,7 +79,7 @@ static void set_gain(void) | |||
79 | } | 79 | } |
80 | } | 80 | } |
81 | 81 | ||
82 | static char *fmtstr[] = | 82 | static const char* const fmtstr[] = |
83 | { | 83 | { |
84 | "", /* no decimals */ | 84 | "", /* no decimals */ |
85 | "%d.%d %s ", /* 1 decimal */ | 85 | "%d.%d %s ", /* 1 decimal */ |
@@ -632,7 +632,7 @@ bool f2_rec_screen(void) | |||
632 | lcd_getstringsize("A",&w,&h); | 632 | lcd_getstringsize("A",&w,&h); |
633 | 633 | ||
634 | while (!exit) { | 634 | while (!exit) { |
635 | char* ptr=NULL; | 635 | const char* ptr=NULL; |
636 | 636 | ||
637 | lcd_clear_display(); | 637 | lcd_clear_display(); |
638 | 638 | ||