From d7e4f19942b539bbee51089c63a64a56738fd2c2 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 13 Sep 2023 10:58:17 -0700
Subject: [PATCH] Updated to match SDL3 function prototype changes
---
src/mixer.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/mixer.c b/src/mixer.c
index 8ae898c4..de4c7942 100644
--- a/src/mixer.c
+++ b/src/mixer.c
@@ -340,7 +340,7 @@ static void *Mix_DoEffects(int chan, void *snd, int len)
/* Mixing function */
static void SDLCALL
-mix_channels(void *udata, SDL_AudioStream *astream, int len)
+mix_channels(void *udata, SDL_AudioStream *astream, int len, int total)
{
Uint8 *stream;
Uint8 *mix_input;
@@ -348,6 +348,7 @@ mix_channels(void *udata, SDL_AudioStream *astream, int len)
Uint64 sdl_ticks;
(void)udata;
+ (void)total;
if (audio_mixbuflen < len) {
void *ptr = SDL_aligned_alloc(SDL_SIMDGetAlignment(), len);
@@ -514,7 +515,7 @@ int Mix_OpenAudio(SDL_AudioDeviceID devid, const SDL_AudioSpec *spec)
return -1;
}
- SDL_GetAudioDeviceFormat(audio_device, &mixer);
+ SDL_GetAudioDeviceFormat(audio_device, &mixer, NULL);
audio_stream = SDL_CreateAudioStream(&mixer, &mixer);
if (!audio_stream) {
SDL_CloseAudioDevice(audio_device);