summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-06-11 08:28:38 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-06-11 08:28:38 +0000
commit24d9f59c784ab07241b51851a2683ea1c90e89e2 (patch)
tree5a9140a80bd279870a5e6d6aa4e6f0d9797eb24f /apps/recorder/recording.c
parent0fba85fe9ee8775aed331e4a9f60d91ac78ade9c (diff)
downloadrockbox-24d9f59c784ab07241b51851a2683ea1c90e89e2.tar.gz
rockbox-24d9f59c784ab07241b51851a2683ea1c90e89e2.zip
When recording, disable voice menus without actually modifying user settings. Patch FS#7272, fixes bug FS #6163
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13615 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 226ff9a17f..f7ceb508d5 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -705,7 +705,6 @@ bool recording_screen(bool no_source)
705 int radio_status = (global_settings.rec_source != AUDIO_SRC_FMRADIO) ? 705 int radio_status = (global_settings.rec_source != AUDIO_SRC_FMRADIO) ?
706 FMRADIO_OFF : get_radio_status(); 706 FMRADIO_OFF : get_radio_status();
707#endif 707#endif
708 int talk_menu = global_settings.talk_menu;
709#if (CONFIG_LED == LED_REAL) 708#if (CONFIG_LED == LED_REAL)
710 bool led_state = false; 709 bool led_state = false;
711 int led_countdown = 2; 710 int led_countdown = 2;
@@ -741,9 +740,8 @@ bool recording_screen(bool no_source)
741#endif 740#endif
742 741
743#if CONFIG_CODEC == SWCODEC 742#if CONFIG_CODEC == SWCODEC
744 /* recording_menu gets messed up: so reset talk_menu */ 743 /* recording_menu gets messed up: so prevent manus talking */
745 talk_menu = global_settings.talk_menu; 744 talk_disable_menus();
746 global_settings.talk_menu = 0;
747 /* audio_init_recording stops anything playing when it takes the audio 745 /* audio_init_recording stops anything playing when it takes the audio
748 buffer */ 746 buffer */
749#else 747#else
@@ -931,8 +929,9 @@ bool recording_screen(bool no_source)
931 have_recorded = true; 929 have_recorded = true;
932 rec_record(); 930 rec_record();
933 last_seconds = 0; 931 last_seconds = 0;
934 if (talk_menu) 932 if (global_settings.talk_menu)
935 { /* no voice possible here, but a beep */ 933 {
934 /* no voice possible here, but a beep */
936 audio_beep(HZ/2); /* longer beep on start */ 935 audio_beep(HZ/2); /* longer beep on start */
937 } 936 }
938 } 937 }
@@ -960,8 +959,9 @@ bool recording_screen(bool no_source)
960 if(audio_stat & AUDIO_STATUS_PAUSE) 959 if(audio_stat & AUDIO_STATUS_PAUSE)
961 { 960 {
962 audio_resume_recording(); 961 audio_resume_recording();
963 if (talk_menu) 962 if (global_settings.talk_menu)
964 { /* no voice possible here, but a beep */ 963 {
964 /* no voice possible here, but a beep */
965 audio_beep(HZ/4); /* short beep on resume */ 965 audio_beep(HZ/4); /* short beep on resume */
966 } 966 }
967 } 967 }
@@ -1695,7 +1695,7 @@ bool recording_screen(bool no_source)
1695 rec_set_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK); 1695 rec_set_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK);
1696 1696
1697 /* restore talk_menu setting */ 1697 /* restore talk_menu setting */
1698 global_settings.talk_menu = talk_menu; 1698 talk_enable_menus();
1699#else /* !SWCODEC */ 1699#else /* !SWCODEC */
1700 audio_init_playback(); 1700 audio_init_playback();
1701#endif /* CONFIG_CODEC == SWCODEC */ 1701#endif /* CONFIG_CODEC == SWCODEC */