From 99a0598c284471342fcda1fdcba90d4b666bfbb3 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 29 Aug 2005 20:07:17 +0000 Subject: 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 --- apps/recorder/radio.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'apps/recorder/radio.c') 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) if(search_dir) button = button_get(false); else - button = button_get_w_tmo(HZ / peak_meter_fps); + button = button_get_w_tmo(HZ / PEAK_METER_FPS); switch(button) { case FM_STOP: @@ -479,13 +479,10 @@ bool radio_screen(void) /* Only display the peak meter when not recording */ if(!audio_status()) { - lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); - lcd_fillrect(0, 8 + fh*(top_of_screen + 3), LCD_WIDTH, fh); - lcd_set_drawmode(DRMODE_SOLID); peak_meter_draw(0, 8 + fh*(top_of_screen + 3), LCD_WIDTH, fh); lcd_update_rect(0, 8 + fh*(top_of_screen + 3), LCD_WIDTH, fh); } - + if(TIME_AFTER(current_tick, timeout)) { timeout = current_tick + HZ; -- cgit v1.2.3