summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-04-30 22:28:45 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-04-30 22:28:45 +0000
commit8e71f90940359c0663f8b3c3d65eb6e00adfaef6 (patch)
treea46697185c5e6f3e4e6e143306b1ded2e2e2f802 /apps/recorder/recording.c
parent65167c96d3ae4f48c1807773eee9d7b78521c4a6 (diff)
downloadrockbox-8e71f90940359c0663f8b3c3d65eb6e00adfaef6.tar.gz
rockbox-8e71f90940359c0663f8b3c3d65eb6e00adfaef6.zip
The recording buffer should not try to use the voice buffer, so map our buffer after it. On swcodec targets, recording always uses this buffer so always notify the others that we did. Fixes bug 4754.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9841 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 172689372f..0d414292b2 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -320,11 +320,11 @@ static void trigger_listener(int trigger_status)
320 case TRIG_GO: 320 case TRIG_GO:
321 if((audio_status() & AUDIO_STATUS_RECORD) != AUDIO_STATUS_RECORD) 321 if((audio_status() & AUDIO_STATUS_RECORD) != AUDIO_STATUS_RECORD)
322 { 322 {
323 talk_buffer_steal(); /* we use the mp3 buffer */ 323 talk_buffer_steal(); /* we use the mp3 buffer */
324 audio_record(rec_create_filename(path_buffer)); 324 audio_record(rec_create_filename(path_buffer));
325 325
326 /* give control to mpeg thread so that it can start recording */ 326 /* give control to mpeg thread so that it can start recording*/
327 yield(); yield(); yield(); 327 yield(); yield(); yield();
328 } 328 }
329 329
330 /* if we're already recording this is a retrigger */ 330 /* if we're already recording this is a retrigger */
@@ -567,7 +567,9 @@ bool recording_screen(void)
567#endif 567#endif
568 peak_meter_enabled = true; 568 peak_meter_enabled = true;
569 569
570#if CONFIG_CODEC != SWCODEC
570 if (global_settings.rec_prerecord_time) 571 if (global_settings.rec_prerecord_time)
572#endif
571 talk_buffer_steal(); /* will use the mp3 buffer */ 573 talk_buffer_steal(); /* will use the mp3 buffer */
572 574
573 audio_set_recording_options(global_settings.rec_frequency, 575 audio_set_recording_options(global_settings.rec_frequency,
@@ -905,7 +907,9 @@ bool recording_screen(void)
905 } 907 }
906 settings_save(); 908 settings_save();
907 909
910#if CONFIG_CODEC != SWCODEC
908 if (global_settings.rec_prerecord_time) 911 if (global_settings.rec_prerecord_time)
912#endif
909 talk_buffer_steal(); /* will use the mp3 buffer */ 913 talk_buffer_steal(); /* will use the mp3 buffer */
910 914
911 audio_set_recording_options(global_settings.rec_frequency, 915 audio_set_recording_options(global_settings.rec_frequency,