From ecfc5649c00ab4b4f89600d091f431313968760f Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 4 Sep 2023 22:33:04 +0300
Subject: [PATCH] remove endian ifdefs and define MIX_DEFAULT_FORMAT as
AUDIO_S16SYS
---
include/SDL_mixer.h | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/include/SDL_mixer.h b/include/SDL_mixer.h
index 59044ef3..4e83b4b6 100644
--- a/include/SDL_mixer.h
+++ b/include/SDL_mixer.h
@@ -220,11 +220,7 @@ extern DECLSPEC void SDLCALL Mix_Quit(void);
/* Good default values for a PC soundcard */
#define MIX_DEFAULT_FREQUENCY 44100
-#if SDL_BYTEORDER == SDL_LIL_ENDIAN
-#define MIX_DEFAULT_FORMAT AUDIO_S16LSB
-#else
-#define MIX_DEFAULT_FORMAT AUDIO_S16MSB
-#endif
+#define MIX_DEFAULT_FORMAT AUDIO_S16SYS
#define MIX_DEFAULT_CHANNELS 2
#define MIX_MAX_VOLUME SDL_MIX_MAXVOLUME /* Volume of a chunk */
@@ -2798,6 +2794,7 @@ extern DECLSPEC void SDLCALL Mix_CloseAudio(void);
#ifdef __cplusplus
}
#endif
+
#include "close_code.h"
#endif /* SDL_MIXER_H_ */