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/recording.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/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index c7d4b803d2..c2f2462a5c 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -46,6 +46,7 @@ #include "string.h" #include "dir.h" #include "errno.h" +#include "talk.h" bool f2_rec_screen(void); bool f3_rec_screen(void); @@ -166,6 +167,9 @@ bool recording_screen(void) peak_meter_enabled = true; + if (global_settings.rec_prerecord_time) + talk_buffer_steal(); /* will use the mp3 buffer */ + mpeg_set_recording_options(global_settings.rec_frequency, global_settings.rec_quality, global_settings.rec_source, @@ -223,6 +227,7 @@ bool recording_screen(void) if(!(mpeg_status() & MPEG_STATUS_RECORD)) { have_recorded = true; + talk_buffer_steal(); /* we use the mp3 buffer */ mpeg_record(rec_create_filename(path_buffer)); status_set_playmode(STATUS_RECORD); update_countdown = 1; /* Update immediately */ @@ -336,6 +341,9 @@ bool recording_screen(void) return SYS_USB_CONNECTED; settings_save(); + if (global_settings.rec_prerecord_time) + talk_buffer_steal(); /* will use the mp3 buffer */ + mpeg_set_recording_options(global_settings.rec_frequency, global_settings.rec_quality, global_settings.rec_source, @@ -660,6 +668,9 @@ bool f2_rec_screen(void) } } + if (global_settings.rec_prerecord_time) + talk_buffer_steal(); /* will use the mp3 buffer */ + mpeg_set_recording_options(global_settings.rec_frequency, global_settings.rec_quality, global_settings.rec_source, @@ -730,6 +741,9 @@ bool f3_rec_screen(void) } } + if (global_settings.rec_prerecord_time) + talk_buffer_steal(); /* will use the mp3 buffer */ + mpeg_set_recording_options(global_settings.rec_frequency, global_settings.rec_quality, global_settings.rec_source, |