forked from len0rd/rockbox
display radio status (play/pause as on/mute)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8000 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c94557e0b9
commit
b216422be7
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue