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

@@ -129,6 +129,10 @@ void JA_StopMusic() {
music.state = JA_MUSIC_STOPPED;
}
bool JA_IsMusicPlaying() {
return music.state == JA_MUSIC_PLAYING;
}
JA_Sound JA_LoadSound(const char* filename) {
JA_Sound sound = new JA_Sound_t();
SDL_AudioSpec wavSpec;