summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-02-24 19:17:47 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-02-24 19:17:47 +0000
commit64f0682f6ef80acac51c5fd7972ccd23a8ec42fe (patch)
treeee1d89a21af24c4473c889ac85f3bf679485de96
parent6c2fafb98b3c1d7640102e2eb290f8c04a5c0b5e (diff)
also enable recording cliplight when monitoring before recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8834 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/peakmeter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index f70e9ae709..571571de9e 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -954,9 +954,9 @@ void peak_meter_draw(int x, int y, int width, int height)
if ((pm_clip_left || pm_clip_right) &&
global_settings.cliplight &&
#if CONFIG_CODEC == SWCODEC
- (pcm_rec_status() & (AUDIO_STATUS_RECORD | AUDIO_STATUS_PRERECORD)))
+ !pm_playback)
#else
- (audio_status() & (AUDIO_STATUS_RECORD | AUDIO_STATUS_PRERECORD)))
+ !(audio_status() & (AUDIO_STATUS_PLAY | AUDIO_STATUS_ERROR)))
#endif
{
/* if clipping, cliplight setting on and in recording screen */