Skip to content

Commit 45828d1

Browse files
Merge branch 'main' into json-set-number-testing
2 parents 85b2044 + 4cc1785 commit 45828d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3105
-752
lines changed

coresdk/src/backend/audio_driver.cpp

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,28 @@ namespace splashkit_lib
372372
}
373373
}
374374

375+
bool sk_music_paused()
376+
{
377+
internal_sk_init();
378+
if (Mix_PausedMusic())
379+
{
380+
return true;
381+
}
382+
else
383+
{
384+
return false;
385+
}
386+
}
387+
375388
bool sk_music_playing()
376389
{
377390
internal_sk_init();
378-
if ( Mix_PlayingMusic() ) {
391+
if (Mix_PausedMusic())
392+
{
393+
return false;
394+
}
395+
else if (Mix_PlayingMusic())
396+
{
379397
return true;
380398
}
381399
else

coresdk/src/backend/audio_driver.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ namespace splashkit_lib
7272

7373
void sk_stop_sound(sk_sound_data *sound);
7474

75+
bool sk_music_paused();
76+
7577
bool sk_music_playing();
7678

7779
sk_sound_data * sk_current_music();

0 commit comments

Comments
 (0)