JA_IsMusicPlaying() added

This commit is contained in:
2021-02-03 21:39:28 +01:00
parent b8b2b417a9
commit 377c760e45
4 changed files with 13 additions and 0 deletions

View File

@@ -20,6 +20,13 @@ int main(int argc, char **argv) {
if (event.type == SDL_QUIT) { should_exit = true; break; }
if (event.type == SDL_KEYDOWN) {
JA_PlaySound(peiv);
if (JA_IsMusicPlaying())
JA_PauseMusic();
else
{
JA_RestartMusic();
}
}
}
}