From 79dfac7f80fd9ef26f7659da1adb99d80ade4b2a Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Tue, 17 Sep 2024 19:28:17 +0100
Subject: [PATCH] Update for rename of SDL3 atomic int APIs
Signed-off-by: Simon McVittie <smcv@debian.org>
---
src/mixer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mixer.c b/src/mixer.c
index 64d4d4d7..c2abfaec 100644
--- a/src/mixer.c
+++ b/src/mixer.c
@@ -360,7 +360,7 @@ mix_channels(void *udata, SDL_AudioStream *astream, int len, int total)
/* Mix the music (must be done before the channels are added) */
mix_music(music_data, stream, len);
- master_vol = SDL_AtomicGet(&master_volume);
+ master_vol = SDL_GetAtomicInt(&master_volume);
/* Mix any playing channels... */
sdl_ticks = SDL_GetTicks();
@@ -1775,14 +1775,14 @@ void Mix_UnlockAudio(void)
int Mix_MasterVolume(int volume)
{
- int prev_volume = SDL_AtomicGet(&master_volume);
+ int prev_volume = SDL_GetAtomicInt(&master_volume);
if (volume < 0) {
return prev_volume;
}
if (volume > MIX_MAX_VOLUME) {
volume = MIX_MAX_VOLUME;
}
- SDL_AtomicSet(&master_volume, volume);
+ SDL_SetAtomicInt(&master_volume, volume);
return prev_volume;
}