summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/wavview.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/apps/plugins/wavview.c b/apps/plugins/wavview.c
index e848807d53..b56a379a43 100644
--- a/apps/plugins/wavview.c
+++ b/apps/plugins/wavview.c
@@ -102,18 +102,19 @@ void little_endian_to_native (void *data, char *format)
102 store peak info in aufiobuf for display routine */ 102 store peak info in aufiobuf for display routine */
103static int readwavpeaks(char *filename) 103static int readwavpeaks(char *filename)
104{ 104{
105 register uint32_t bytes_read;
106 register uint32_t fppmp_count;
107 register int16_t sampleval;
108 register uint16_t* sampleshort = NULL;
109
105 int file; 110 int file;
106 uint32_t total_bytes_read = 0; 111 uint32_t total_bytes_read = 0;
107 char tstr[128]; 112 char tstr[128];
108 int hours; 113 int hours;
109 int minutes; 114 int minutes;
110 int seconds; 115 int seconds;
111 uint32_t bytes_read;
112 uint32_t peakcount = 0; 116 uint32_t peakcount = 0;
113 uint16_t* sampleshort = NULL;
114 int16_t sampleval;
115 struct peakstruct* peak = NULL; 117 struct peakstruct* peak = NULL;
116 uint32_t fppmp_count;
117 118
118 if(rb->strcasecmp (filename + rb->strlen (filename) - 3, "wav")) 119 if(rb->strcasecmp (filename + rb->strlen (filename) - 3, "wav"))
119 { 120 {
@@ -270,12 +271,12 @@ static int readwavpeaks(char *filename)
270 271
271int displaypeaks(void) 272int displaypeaks(void)
272{ 273{
273 int x = 0; 274 register int x = 0;
274 int lymin = INT_MAX; 275 register int lymin = INT_MAX;
275 int lymax = INT_MIN; 276 register int lymax = INT_MIN;
276 int rymin = INT_MAX; 277 register int rymin = INT_MAX;
277 int rymax = INT_MIN; 278 register int rymax = INT_MIN;
278 unsigned int peakcount = 0; 279 register unsigned int peakcount = 0;
279 struct peakstruct* peak = (struct peakstruct*)audiobuf + leftmargin; 280 struct peakstruct* peak = (struct peakstruct*)audiobuf + leftmargin;
280 281
281#if LCD_DEPTH > 1 282#if LCD_DEPTH > 1