diff options
| author | Anton Oleynikov <len0x@rockbox.org> | 2005-11-19 19:50:04 +0000 |
|---|---|---|
| committer | Anton Oleynikov <len0x@rockbox.org> | 2005-11-19 19:50:04 +0000 |
| commit | b216422be73e7e5ad17a3143f49dc9fc061c06b2 (patch) | |
| tree | 2a61f3d9546d94a7469438fb7f0eb6ca559b41a8 /apps/status.c | |
| parent | c94557e0b9415fdfe31154b75d320bf2ebd39168 (diff) | |
| download | rockbox-b216422be73e7e5ad17a3143f49dc9fc061c06b2.zip rockbox-b216422be73e7e5ad17a3143f49dc9fc061c06b2.tar.gz rockbox-b216422be73e7e5ad17a3143f49dc9fc061c06b2.tar.bz2 rockbox-b216422be73e7e5ad17a3143f49dc9fc061c06b2.tar.xz | |
display radio status (play/pause as on/mute)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8000 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/status.c')
| -rw-r--r-- | apps/status.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/status.c b/apps/status.c index 978341d..6a7c6a4 100644 --- a/apps/status.c +++ b/apps/status.c @@ -42,6 +42,9 @@ #include "button.h" #endif #include "usb.h" +#ifdef CONFIG_TUNER +#include "radio.h" +#endif enum playmode ff_mode; @@ -118,6 +121,16 @@ int current_playmode(void) } } #endif + +#ifdef CONFIG_TUNER + audio_stat = get_radio_status(); + + if(audio_stat == FMRADIO_PLAYING) + return STATUS_PLAY; + + if(audio_stat == FMRADIO_PAUSED) + return STATUS_PAUSE; +#endif return STATUS_STOP; } |