summaryrefslogtreecommitdiff
path: root/apps/status.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-04-04 12:06:29 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-04-04 12:06:29 +0000
commit8a237a829e0f63b61536f315209a6d0ea1477e31 (patch)
tree1fe54329fe776aa7bc982a37203cb61c13244a48 /apps/status.c
parentec4e9b8d600c53add3c8bf6eb7fe1975dba141a7 (diff)
downloadrockbox-8a237a829e0f63b61536f315209a6d0ea1477e31.tar.gz
rockbox-8a237a829e0f63b61536f315209a6d0ea1477e31.zip
More audio code restructuring, mostly renaming functions so far
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6246 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/status.c')
-rw-r--r--apps/status.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/status.c b/apps/status.c
index d4736f3773..62eb03465c 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -25,7 +25,7 @@
25#include "settings.h" 25#include "settings.h"
26#include "status.h" 26#include "status.h"
27#include "mp3_playback.h" 27#include "mp3_playback.h"
28#include "mpeg.h" 28#include "audio.h"
29#include "wps.h" 29#include "wps.h"
30#ifdef HAVE_RTC 30#ifdef HAVE_RTC
31#include "timefuncs.h" 31#include "timefuncs.h"
@@ -75,16 +75,16 @@ void status_set_ffmode(enum playmode mode)
75 75
76int current_playmode(void) 76int current_playmode(void)
77{ 77{
78 int mpeg_stat = mpeg_status(); 78 int audio_stat = audio_status();
79 79
80 /* ff_mode can be either STATUS_FASTFORWARD or STATUS_FASTBACKWARD 80 /* ff_mode can be either STATUS_FASTFORWARD or STATUS_FASTBACKWARD
81 and that supercedes the other modes */ 81 and that supercedes the other modes */
82 if(ff_mode) 82 if(ff_mode)
83 return ff_mode; 83 return ff_mode;
84 84
85 if(mpeg_stat & MPEG_STATUS_PLAY) 85 if(audio_stat & AUDIO_STATUS_PLAY)
86 { 86 {
87 if(mpeg_stat & MPEG_STATUS_PAUSE) 87 if(audio_stat & AUDIO_STATUS_PAUSE)
88 return STATUS_PAUSE; 88 return STATUS_PAUSE;
89 else 89 else
90 return STATUS_PLAY; 90 return STATUS_PLAY;
@@ -92,9 +92,9 @@ int current_playmode(void)
92#if CONFIG_HWCODEC == MAS3587F 92#if CONFIG_HWCODEC == MAS3587F
93 else 93 else
94 { 94 {
95 if(mpeg_stat & MPEG_STATUS_RECORD) 95 if(audio_stat & AUDIO_STATUS_RECORD)
96 { 96 {
97 if(mpeg_stat & MPEG_STATUS_PAUSE) 97 if(audio_stat & AUDIO_STATUS_PAUSE)
98 return STATUS_RECORD_PAUSE; 98 return STATUS_RECORD_PAUSE;
99 else 99 else
100 return STATUS_RECORD; 100 return STATUS_RECORD;