Pause immediately
Fixed an issue whereby music was not paused instantly after user input, but only after the currently playing buffer had finished playing. Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Submodule buildtools updated: 29ab2234e7...78acb42849
@@ -109,6 +109,7 @@ int playFile(const char* file)
|
||||
if(kDown & (KEY_A | KEY_R))
|
||||
{
|
||||
playing = !playing;
|
||||
ndspChnSetPaused(CHANNEL, !ndspChnIsPaused(CHANNEL));
|
||||
printf("\33[2K\r%s", playing == false ? "Paused" : "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user