diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-03-03 19:41:16 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-03-03 19:41:16 +0000 |
commit | c7838b8418a739e9f4f0e6c6a0e58bb51f38e527 (patch) | |
tree | 45985b0e8efe3de235d12da92f012fdd8897c90f | |
parent | 7ceadd79db71cee6b2ae7f89f992e896fd11c02c (diff) | |
download | rockbox-c7838b8418a739e9f4f0e6c6a0e58bb51f38e527.tar.gz rockbox-c7838b8418a739e9f4f0e6c6a0e58bb51f38e527.zip |
Do not show peakmeter and recording time on radio screen for targets with software codec because this isn't implemented yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8897 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/recorder/radio.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 073d537f24..7b533e9184 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -299,7 +299,9 @@ bool radio_screen(void) | |||
299 | bool have_recorded = false; | 299 | bool have_recorded = false; |
300 | unsigned int seconds = 0; | 300 | unsigned int seconds = 0; |
301 | unsigned int last_seconds = 0; | 301 | unsigned int last_seconds = 0; |
302 | #if CONFIG_CODEC != SWCODEC | ||
302 | int hours, minutes; | 303 | int hours, minutes; |
304 | #endif | ||
303 | bool keep_playing = false; | 305 | bool keep_playing = false; |
304 | bool statusbar = global_settings.statusbar; | 306 | bool statusbar = global_settings.statusbar; |
305 | #ifdef HAS_BUTTONBAR | 307 | #ifdef HAS_BUTTONBAR |
@@ -356,6 +358,7 @@ bool radio_screen(void) | |||
356 | audio_set_recording_gain(sound_default(SOUND_LEFT_GAIN), | 358 | audio_set_recording_gain(sound_default(SOUND_LEFT_GAIN), |
357 | sound_default(SOUND_RIGHT_GAIN), AUDIO_GAIN_LINEIN); | 359 | sound_default(SOUND_RIGHT_GAIN), AUDIO_GAIN_LINEIN); |
358 | #else | 360 | #else |
361 | peak_meter_enabled = false; | ||
359 | uda1380_enable_recording(false); | 362 | uda1380_enable_recording(false); |
360 | uda1380_set_recvol(10, 10, AUDIO_GAIN_DECIMATOR); | 363 | uda1380_set_recvol(10, 10, AUDIO_GAIN_DECIMATOR); |
361 | uda1380_set_recvol(0, 0, AUDIO_GAIN_LINEIN); | 364 | uda1380_set_recvol(0, 0, AUDIO_GAIN_LINEIN); |
@@ -733,7 +736,9 @@ bool radio_screen(void) | |||
733 | if (button != BUTTON_NONE) | 736 | if (button != BUTTON_NONE) |
734 | lastbutton = button; | 737 | lastbutton = button; |
735 | 738 | ||
739 | #if CONFIG_CODEC != SWCODEC | ||
736 | peak_meter_peek(); | 740 | peak_meter_peek(); |
741 | #endif | ||
737 | 742 | ||
738 | if(!screen_freeze) | 743 | if(!screen_freeze) |
739 | { | 744 | { |
@@ -741,7 +746,9 @@ bool radio_screen(void) | |||
741 | if(!audio_status()) | 746 | if(!audio_status()) |
742 | { | 747 | { |
743 | /* just main screen for the time being */ | 748 | /* just main screen for the time being */ |
749 | #if CONFIG_CODEC != SWCODEC | ||
744 | peak_meter_draw(0, STATUSBAR_HEIGHT + fh*(top_of_screen + 4), LCD_WIDTH, fh); | 750 | peak_meter_draw(0, STATUSBAR_HEIGHT + fh*(top_of_screen + 4), LCD_WIDTH, fh); |
751 | #endif | ||
745 | screens[SCREEN_MAIN].update_rect(0, STATUSBAR_HEIGHT + fh*(top_of_screen + 4), screens[SCREEN_MAIN].width, fh); | 752 | screens[SCREEN_MAIN].update_rect(0, STATUSBAR_HEIGHT + fh*(top_of_screen + 4), screens[SCREEN_MAIN].width, fh); |
746 | } | 753 | } |
747 | 754 | ||
@@ -796,7 +803,7 @@ bool radio_screen(void) | |||
796 | str(LANG_RADIO_SCAN_MODE)); | 803 | str(LANG_RADIO_SCAN_MODE)); |
797 | FOR_NB_SCREENS(i) | 804 | FOR_NB_SCREENS(i) |
798 | screens[i].puts_scroll(0, top_of_screen + 3, buf); | 805 | screens[i].puts_scroll(0, top_of_screen + 3, buf); |
799 | 806 | #if CONFIG_CODEC != SWCODEC | |
800 | if(audio_status() == AUDIO_STATUS_RECORD) | 807 | if(audio_status() == AUDIO_STATUS_RECORD) |
801 | { | 808 | { |
802 | hours = seconds / 3600; | 809 | hours = seconds / 3600; |
@@ -817,6 +824,7 @@ bool radio_screen(void) | |||
817 | screens[i].puts_scroll(0, top_of_screen + 4, buf); | 824 | screens[i].puts_scroll(0, top_of_screen + 4, buf); |
818 | } | 825 | } |
819 | } | 826 | } |
827 | #endif | ||
820 | 828 | ||
821 | #ifdef HAS_BUTTONBAR | 829 | #ifdef HAS_BUTTONBAR |
822 | gui_buttonbar_draw(&buttonbar); | 830 | gui_buttonbar_draw(&buttonbar); |