From: "Alex Volkov" <avcp-sdlmail@usa.net>
authorRyan C. Gordon <icculus@icculus.org>
Tue, 27 Sep 2005 12:14:17 +0000
changeset 1147 b580f7201543
parent 1146 ab0154afe938
child 1148 63fb2da89a4b
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.
src/audio/SDL_mixer_MMX.c
--- 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"