summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-08-29 20:07:17 +0000
committerJens Arnold <amiconn@rockbox.org>2005-08-29 20:07:17 +0000
commit99a0598c284471342fcda1fdcba90d4b666bfbb3 (patch)
tree83cc502095e87277de770456498d2de6cf8f473b /apps/recorder/radio.c
parent89a8ca4408c3ea34464898b0ce52a0d8351fa323 (diff)
downloadrockbox-99a0598c284471342fcda1fdcba90d4b666bfbb3.tar.gz
rockbox-99a0598c284471342fcda1fdcba90d4b666bfbb3.zip
Major peakmeter rework: * Changed set/get functions for dbfs mode to bool type. * Removed performance setting, leaving (slightly adapted) high performance mode only. * Refresh rate is always 20 Hz now. * Readout doesn't do an extra (hidden) peek, should allow for slightly better clip detection. * Brought back high performance peakmeter for recording. Peakmeter stops hogging the CPU when the disk is spinning; this is enough to avoid the performance problem when saving data. * Optimisations, code cleanup and code policeing. * (iriver) Reduced CPU load of peakmeter by not calculating excessive overlaps. ** Bumped config block version, so save your settings before upgrading.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7415 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r--apps/recorder/radio.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 4e6c52ea84..a0280ecf1f 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -304,7 +304,7 @@ bool radio_screen(void)
304 if(search_dir) 304 if(search_dir)
305 button = button_get(false); 305 button = button_get(false);
306 else 306 else
307 button = button_get_w_tmo(HZ / peak_meter_fps); 307 button = button_get_w_tmo(HZ / PEAK_METER_FPS);
308 switch(button) 308 switch(button)
309 { 309 {
310 case FM_STOP: 310 case FM_STOP:
@@ -479,13 +479,10 @@ bool radio_screen(void)
479 /* Only display the peak meter when not recording */ 479 /* Only display the peak meter when not recording */
480 if(!audio_status()) 480 if(!audio_status())
481 { 481 {
482 lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
483 lcd_fillrect(0, 8 + fh*(top_of_screen + 3), LCD_WIDTH, fh);
484 lcd_set_drawmode(DRMODE_SOLID);
485 peak_meter_draw(0, 8 + fh*(top_of_screen + 3), LCD_WIDTH, fh); 482 peak_meter_draw(0, 8 + fh*(top_of_screen + 3), LCD_WIDTH, fh);
486 lcd_update_rect(0, 8 + fh*(top_of_screen + 3), LCD_WIDTH, fh); 483 lcd_update_rect(0, 8 + fh*(top_of_screen + 3), LCD_WIDTH, fh);
487 } 484 }
488 485
489 if(TIME_AFTER(current_tick, timeout)) 486 if(TIME_AFTER(current_tick, timeout))
490 { 487 {
491 timeout = current_tick + HZ; 488 timeout = current_tick + HZ;