summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 4893f589f1..e246825443 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -1730,7 +1730,7 @@ bool recording_screen(bool no_source)
1730 /* Don't use language string unless agreed upon to make this 1730 /* Don't use language string unless agreed upon to make this
1731 method permanent - could do something in the statusbar */ 1731 method permanent - could do something in the statusbar */
1732 snprintf(buf, sizeof(buf), "Warning: %08lX", 1732 snprintf(buf, sizeof(buf), "Warning: %08lX",
1733 pcm_rec_get_warnings()); 1733 (unsigned long)pcm_rec_get_warnings());
1734 } 1734 }
1735 else 1735 else
1736#endif /* CONFIG_CODEC == SWCODEC */ 1736#endif /* CONFIG_CODEC == SWCODEC */
@@ -1755,8 +1755,16 @@ bool recording_screen(bool no_source)
1755 1755
1756 if(audio_stat & AUDIO_STATUS_PRERECORD) 1756 if(audio_stat & AUDIO_STATUS_PRERECORD)
1757 { 1757 {
1758#if CONFIG_CODEC == SWCODEC
1759 /* Tracks amount of prerecorded data in buffer */
1760 snprintf(buf, sizeof(buf), "%s (%lu/%ds)...",
1761 str(LANG_RECORD_PRERECORD),
1762 audio_prerecorded_time() / HZ,
1763 global_settings.rec_prerecord_time);
1764#else /* !SWCODEC */
1758 snprintf(buf, sizeof(buf), "%s...", 1765 snprintf(buf, sizeof(buf), "%s...",
1759 str(LANG_RECORD_PRERECORD)); 1766 str(LANG_RECORD_PRERECORD));
1767#endif /* CONFIG_CODEC == SWCODEC */
1760 } 1768 }
1761 else 1769 else
1762 { 1770 {
@@ -1915,8 +1923,7 @@ bool recording_screen(bool no_source)
1915 screens[i].update(); 1923 screens[i].update();
1916 1924
1917#if CONFIG_CODEC == SWCODEC 1925#if CONFIG_CODEC == SWCODEC
1918 /* stop recording - some players like H10 freeze otherwise 1926 /* stop recording first and try to finish saving whatever it can */
1919 TO DO: find out why it freezes and fix properly */
1920 rec_command(RECORDING_CMD_STOP); 1927 rec_command(RECORDING_CMD_STOP);
1921 audio_close_recording(); 1928 audio_close_recording();
1922#endif 1929#endif