changeset 1147:b580f7201543

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.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 27 Sep 2005 12:14:17 +0000
parents ab0154afe938
children 63fb2da89a4b
files src/audio/SDL_mixer_MMX.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"