summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-08-25 15:53:54 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-08-25 15:53:54 +0000
commit583f186ce488ed52eb0c663a8263f4052e19063d (patch)
treed5f11cf489202737c93dafd52f9f65fb09f6a2b8 /apps/misc.c
parentcdfb22f9dfdbae2fdc6902f895fd89060abaa38b (diff)
downloadrockbox-583f186ce488ed52eb0c663a8263f4052e19063d.zip
rockbox-583f186ce488ed52eb0c663a8263f4052e19063d.tar.gz
rockbox-583f186ce488ed52eb0c663a8263f4052e19063d.tar.bz2
rockbox-583f186ce488ed52eb0c663a8263f4052e19063d.tar.xz
Implement FS #2976: Clip Counter for recording screen. If enabled in peak meter settings, it shows the number of times clipping occurred (clip indicator going on). Count is reset on recording start and only counts during actual recording. Stays on screen when stopping or pauzing. Also fix a drawing bug when peakmeters start at a non-zero x offset.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14455 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 23c332a..3d361f4 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -53,7 +53,9 @@
#endif
#include "tree.h"
#include "eeprom_settings.h"
-
+#ifdef HAVE_RECORDING
+#include "recording.h"
+#endif
#ifdef HAVE_LCD_BITMAP
#include "bmp.h"
#include "icons.h"
@@ -659,7 +661,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
#if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC
if (audio_stat & AUDIO_STATUS_RECORD)
{
- audio_stop_recording();
+ rec_command(RECORDING_CMD_STOP);
/* wait for stop to complete */
while (audio_status() & AUDIO_STATUS_RECORD)
sleep(1);