From a65525f6e40f2ed4918550f729853268362607c9 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 10 Feb 2023 11:40:32 +0300
Subject: [PATCH] update SDL_ConvertAudioSamples() parameter order after latest
SDL3.
---
src/mixer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mixer.c b/src/mixer.c
index 48f5ff74..8ac43f45 100644
--- a/src/mixer.c
+++ b/src/mixer.c
@@ -839,8 +839,8 @@ Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc)
Uint8 *dst_data = NULL;
int dst_len = 0;
- if (SDL_ConvertAudioSamples(wavespec.format, wavespec.channels, wavespec.freq, chunk->alen, chunk->abuf,
- mixer.format, mixer.channels, mixer.freq, &dst_len, &dst_data) < 0) {
+ if (SDL_ConvertAudioSamples(wavespec.format, wavespec.channels, wavespec.freq, chunk->abuf, chunk->alen,
+ mixer.format, mixer.channels, mixer.freq, &dst_data, &dst_len) < 0) {
SDL_free(chunk->abuf);
SDL_free(chunk);
return NULL;