From: "Alex Volkov" <avcp-sdlmail@usa.net>
To: "'A list for developers using the SDL library. \(includesSDL-announce\)'" <sdl@libsdl.org>
Date: Mon, 19 Sep 2005 18:59:43 -0400
Subject: [SDL] [patch] Volume multiplier bug in
The volume multiplier in SDL_MixAudio_MMX_S8() is formed from the wrong
register.
--- a/src/audio/SDL_mixer_MMX.c Tue Sep 27 11:27:38 2005 +0000
+++ b/src/audio/SDL_mixer_MMX.c Tue Sep 27 12:14:17 2005 +0000
@@ -121,7 +121,7 @@
" movl %3,%%eax\n" // eax = volume
-" movd %%edx,%%mm0\n"
+" movd %%eax,%%mm0\n"
" movq %%mm0,%%mm1\n"
" psllq $16,%%mm0\n"
" por %%mm1,%%mm0\n"