Changes to file browser

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Mahyar Koshkouei
2017-01-01 13:58:36 +00:00
parent 9920fd1ac3
commit f7fa518294
5 changed files with 92 additions and 33 deletions

View File

@@ -144,15 +144,13 @@ int playWav(const char *wav)
break;
if(kDown & (KEY_A | KEY_R))
playing = !playing;
if(playing == false || lastbuf == true)
{
printf("\33[2K\rPaused");
continue;
playing = !playing;
printf("\33[2K\r%s", playing == false ? "Paused" : "");
}
printf("\33[2K\r");
if(playing == false || lastbuf == true)
continue;
if(waveBuf[0].status == NDSP_WBUF_DONE)
{