Add pause/play display again

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Mahyar Koshkouei
2017-02-10 12:15:56 +00:00
parent 5b433f2396
commit 488a3d9357
3 changed files with 15 additions and 2 deletions

View File

@@ -83,8 +83,15 @@ int main(int argc, char **argv)
/* Pause/Play */
if(kDown & (KEY_R | KEY_UP))
{
if(isPlaying() == false)
continue;
consoleSelect(&topScreen);
printf("\r%s", togglePlayback() == true ? "Paused" : "");
if(togglePlayback() == true)
puts("Paused");
else
puts("Playing");
consoleSelect(&bottomScreen);
continue;
}
@@ -207,7 +214,6 @@ int main(int argc, char **argv)
out:
puts("Exiting...");
/* TODO: Stop all threads */
stopPlayback();
changeFile(NULL);