diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-03-19 22:15:53 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-03-19 22:15:53 +0000 |
commit | fa97f161abc45bfd5db86bceb8803d2661e65447 (patch) | |
tree | 1e06ac8c47bd9165e46e85235f059372ddad2b90 /apps/recorder/radio.c | |
parent | 239b70fad38be55075dd14ea8e3c0f6f54a1f35b (diff) | |
download | rockbox-fa97f161abc45bfd5db86bceb8803d2661e65447.tar.gz rockbox-fa97f161abc45bfd5db86bceb8803d2661e65447.zip |
Third step of the voice-UI: numerical settings are spoken (composed at runtime), needs new voicefont at the new location ".rockbox/langs/english.voice"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4414 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r-- | apps/recorder/radio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 5430279f85..f8da238c6f 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include "font.h" | 46 | #include "font.h" |
47 | #include "sound_menu.h" | 47 | #include "sound_menu.h" |
48 | #include "recording.h" | 48 | #include "recording.h" |
49 | #include "talk.h" | ||
49 | 50 | ||
50 | #ifdef HAVE_FMRADIO | 51 | #ifdef HAVE_FMRADIO |
51 | 52 | ||
@@ -174,6 +175,9 @@ bool radio_screen(void) | |||
174 | 175 | ||
175 | peak_meter_enabled = true; | 176 | peak_meter_enabled = true; |
176 | 177 | ||
178 | if (global_settings.rec_prerecord_time) | ||
179 | talk_buffer_steal(); /* will use the mp3 buffer */ | ||
180 | |||
177 | mpeg_set_recording_options(global_settings.rec_frequency, | 181 | mpeg_set_recording_options(global_settings.rec_frequency, |
178 | global_settings.rec_quality, | 182 | global_settings.rec_quality, |
179 | 1, /* Line In */ | 183 | 1, /* Line In */ |
@@ -257,6 +261,7 @@ bool radio_screen(void) | |||
257 | else | 261 | else |
258 | { | 262 | { |
259 | have_recorded = true; | 263 | have_recorded = true; |
264 | talk_buffer_steal(); /* we use the mp3 buffer */ | ||
260 | mpeg_record(rec_create_filename(buf)); | 265 | mpeg_record(rec_create_filename(buf)); |
261 | status_set_playmode(STATUS_RECORD); | 266 | status_set_playmode(STATUS_RECORD); |
262 | update_screen = true; | 267 | update_screen = true; |
@@ -704,6 +709,9 @@ static bool fm_recording_settings(void) | |||
704 | ret = recording_menu(true); | 709 | ret = recording_menu(true); |
705 | if(!ret) | 710 | if(!ret) |
706 | { | 711 | { |
712 | if (global_settings.rec_prerecord_time) | ||
713 | talk_buffer_steal(); /* will use the mp3 buffer */ | ||
714 | |||
707 | mpeg_set_recording_options(global_settings.rec_frequency, | 715 | mpeg_set_recording_options(global_settings.rec_frequency, |
708 | global_settings.rec_quality, | 716 | global_settings.rec_quality, |
709 | 1, /* Line In */ | 717 | 1, /* Line In */ |