Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for rename of SDL3 atomic int APIs #634

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
}

Expand Down
Loading