Skip to content

Commit 4859e17

Browse files
committed
update
1 parent 7853e8b commit 4859e17

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/linux-ubuntu22.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Linux CI22
22
on:
33
push:
44
branches:
5-
[ master, development, add-ubuntu-22.04-support ]
5+
[ master, development, add-ubuntu-22.04-support3 ]
66
pull_request:
77
types: [opened, synchronize, reopened]
88
workflow_dispatch:

remc2/portability/port_sdl_sound.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,11 +1044,12 @@ int run()
10441044

10451045
is_playing = 1;
10461046
/* Start playing */
1047-
#if SDL_MIXER_VERSION_ATLEAST(2, 6, 0)
1047+
#if SDL_MIXER_VERSION_ATLEAST(2, 8, 0)
10481048
Mix_PauseAudio(0);
10491049
#else
1050-
// Mix_PauseAudio není dostupné v SDL2_mixer < 2.6.0
1051-
SDL_PauseAudio(0);
1050+
// Mix_PauseAudio not in SDL2_mixer < 2.8.0
1051+
Mix_Resume(-1);
1052+
Mix_ResumeMusic();
10521053
#endif
10531054

10541055
Logger->info("Playing... Hit Ctrl+C to quit!");

0 commit comments

Comments
 (0)