diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2011-06-05 12:36:27 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2011-06-05 12:36:27 +0000 |
commit | 82f4c60db4f16642c1ee9f461d7eb060c11a49d8 (patch) | |
tree | a7a75d4e57941ebd1b5b15b051a28d1d4751964e /apps/menus/recording_menu.c | |
parent | 62e06cc2a432bb9499646f089796157135829195 (diff) | |
download | rockbox-82f4c60db4f16642c1ee9f461d7eb060c11a49d8.tar.gz rockbox-82f4c60db4f16642c1ee9f461d7eb060c11a49d8.zip |
Make the histogram code usable for playback as well. Move the recording histogram code to peakmeter, rename it to remove the recording reference, and rename anything referring to it as well. Change the drawing code so there are more options to position them. This may change your histogram settings, so check after upgrading.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29969 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/recording_menu.c')
-rw-r--r-- | apps/menus/recording_menu.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c index 8eaeab699c..ae237b1b4a 100644 --- a/apps/menus/recording_menu.c +++ b/apps/menus/recording_menu.c | |||
@@ -392,26 +392,6 @@ MENUITEM_FUNCTION(agc_cliptime, 0, ID2P(LANG_RECORDING_AGC_CLIPTIME), | |||
392 | agc_cliptime_func, NULL, NULL, Icon_Menu_setting); | 392 | agc_cliptime_func, NULL, NULL, Icon_Menu_setting); |
393 | #endif /* HAVE_AGC */ | 393 | #endif /* HAVE_AGC */ |
394 | 394 | ||
395 | #if defined(HAVE_RECORDING_HISTOGRAM) | ||
396 | static bool history_interval(void) | ||
397 | { | ||
398 | static const struct opt_items names[] = { | ||
399 | { "0s", TALK_ID(0, UNIT_SEC) }, | ||
400 | { "1s", TALK_ID(1, UNIT_SEC) }, | ||
401 | { "2s", TALK_ID(2, UNIT_SEC) }, | ||
402 | { "4s", TALK_ID(4, UNIT_SEC) } | ||
403 | }; | ||
404 | return set_option(str(LANG_RECORDING_HISTOGRAM_INTERVAL), | ||
405 | &global_settings.rec_histogram_interval, | ||
406 | INT, names, 4, NULL ); | ||
407 | } | ||
408 | |||
409 | MENUITEM_FUNCTION(recording_histogram, 0, | ||
410 | ID2P(LANG_RECORDING_HISTOGRAM_INTERVAL), | ||
411 | history_interval, NULL, NULL, Icon_Menu_setting); | ||
412 | |||
413 | #endif | ||
414 | |||
415 | /** Rec trigger **/ | 395 | /** Rec trigger **/ |
416 | enum trigger_menu_option | 396 | enum trigger_menu_option |
417 | { | 397 | { |
@@ -666,9 +646,6 @@ MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS), | |||
666 | #ifdef HAVE_AGC | 646 | #ifdef HAVE_AGC |
667 | &agc_preset, &agc_cliptime, | 647 | &agc_preset, &agc_cliptime, |
668 | #endif | 648 | #endif |
669 | #if defined(HAVE_RECORDING_HISTOGRAM) | ||
670 | &recording_histogram, | ||
671 | #endif | ||
672 | #ifdef HAVE_LCD_BITMAP | 649 | #ifdef HAVE_LCD_BITMAP |
673 | &peak_meter_menu, | 650 | &peak_meter_menu, |
674 | #endif | 651 | #endif |