From 41140b0e293d7e826f30b52f22cbd5330367f4af Mon Sep 17 00:00:00 2001 From: gewlitys Date: Wed, 31 Dec 2003 19:51:34 +0000 Subject: [PATCH] Don't use mikmod's hqmixer on big endian machines (workaround for bug #166) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1308 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/sound/decoders/modaud.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sc2/src/sc2code/libs/sound/decoders/modaud.c b/sc2/src/sc2code/libs/sound/decoders/modaud.c index 39823cd4e..1ef7a3a4b 100644 --- a/sc2/src/sc2code/libs/sound/decoders/modaud.c +++ b/sc2/src/sc2code/libs/sound/decoders/modaud.c @@ -23,6 +23,7 @@ #include "libs/misc.h" #include "port.h" #include "types.h" +#include "endian_uqm.h" #include "uio.h" #include "decoder.h" #include "mikmod/mikmod.h" @@ -88,7 +89,12 @@ moda_InitModule (int flags, const TFB_DecoderFormats* fmts) if (flags & TFB_SOUNDFLAGS_HQAUDIO) { +#ifndef WORDS_BIGENDIAN md_mode = DMODE_HQMIXER|DMODE_STEREO|DMODE_16BITS|DMODE_INTERP|DMODE_SURROUND; +#else + // disable hqmixer on big endian machines (workaround for bug #166) + md_mode = DMODE_SOFT_MUSIC|DMODE_STEREO|DMODE_16BITS|DMODE_INTERP|DMODE_SURROUND; +#endif md_mixfreq = 44100; md_reverb = 1; }