summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Scarratt <mmmm@rockbox.org>2006-07-24 09:47:30 +0000
committerMartin Scarratt <mmmm@rockbox.org>2006-07-24 09:47:30 +0000
commitb74ce4cbdedb31a65d3db68723b48c8c4c564056 (patch)
treecea795e82fce7897f4437448084304bfe833a4d8
parent24a4bb3d22159005a3cd85f57c1c5619a8f03ea7 (diff)
downloadrockbox-b74ce4cbdedb31a65d3db68723b48c8c4c564056.tar.gz
rockbox-b74ce4cbdedb31a65d3db68723b48c8c4c564056.zip
enable record and pause icons in recording screen status bar for software codec targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10306 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/status.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/apps/status.c b/apps/status.c
index ca8a4d63ef..ad4cb7232b 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -46,6 +46,9 @@
46#ifdef CONFIG_TUNER 46#ifdef CONFIG_TUNER
47#include "radio.h" 47#include "radio.h"
48#endif 48#endif
49#if CONFIG_CODEC == SWCODEC
50#include "pcm_record.h"
51#endif
49 52
50enum playmode ff_mode; 53enum playmode ff_mode;
51 54
@@ -82,16 +85,18 @@ int current_playmode(void)
82 else 85 else
83 return STATUS_PLAY; 86 return STATUS_PLAY;
84 } 87 }
85#if CONFIG_CODEC == MAS3587F 88
86 else 89#ifdef HAVE_RECORDING
90#if CONFIG_CODEC == SWCODEC
91 audio_stat = pcm_rec_status();
92#endif
93
94 if(audio_stat & AUDIO_STATUS_RECORD)
87 { 95 {
88 if(audio_stat & AUDIO_STATUS_RECORD) 96 if(audio_stat & AUDIO_STATUS_PAUSE)
89 { 97 return STATUS_RECORD_PAUSE;
90 if(audio_stat & AUDIO_STATUS_PAUSE) 98 else
91 return STATUS_RECORD_PAUSE; 99 return STATUS_RECORD;
92 else
93 return STATUS_RECORD;
94 }
95 } 100 }
96#endif 101#endif
97 102