int divcnt = 0;
int control = 0;
while (audio_play(readfunc)) {
- switch ((divcnt++) % 10) {
+ switch ((divcnt++) % 8) {
case 0:
menu_file_info(
filinfo.fname, fatfs.fptr * 100 / fatfs.fsize);
menu_audio_control(&control);
if (control != 0) {
switch (control) {
- case AUDIO_CONTROL_FEW:
+ case AUDIO_CONTROL_FWD:
if (fatfs.fptr + 8192 < fatfs.fsize) {
pf_lseek(fatfs.fptr + 8192);
}
int task_fileio(int argc, char *argv[])
{
while (1) {
+ menu_file_info("Mounting...", 0);
if (pf_mount(&fatfs)) {
continue;
}
}
if (p[2]) {
LED_RIGHT();
- _control = AUDIO_CONTROL_FEW;
+ _control = AUDIO_CONTROL_FWD;
}
if (p[3]) {
LED_GREEN();
case 0xaa550af5:
if (_volume < 250) {
_volume++;
- LED_RED();
+ LED_RIGHT();
}
break;
case 0xaa550bf4:
if (5 < _volume) {
_volume--;
- LED_RED();
+ LED_LEFT();
}
break;
case 0xaa5511ee:
break;
case 0xaa5510ef:
LED_RIGHT();
- _control = AUDIO_CONTROL_FEW;
+ _control = AUDIO_CONTROL_FWD;
break;
default:
puts("Unknown: ");
#define AUDIO_CONTROL_NONE 0x00
#define AUDIO_CONTROL_REW 0x01
-#define AUDIO_CONTROL_FEW 0x02
+#define AUDIO_CONTROL_FWD 0x02
int menu_audio_control(int *control);
int menu_audio_info(int *volume);